added brokenSession
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 11 Feb 2005 14:12:40 +0000 (14:12 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 11 Feb 2005 14:12:40 +0000 (14:12 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@44 9efc2488-bf62-4759-914b-345cdb29e865

src/javascript/opensrf_domain_object.js

index 615b8c5..bbcc576 100644 (file)
@@ -98,6 +98,9 @@ DomainObject.newFromNode = function( node ) {
                case "oilsMethodException":
                        return new oilsMethodException().replaceNode( node );
 
+               case "oilsBrokenSession":
+                       return new oilsBrokenSession().replaceNode( node );
+
                case "oilsScalar":
                        return new oilsScalar().replaceNode( node );
 
@@ -490,6 +493,17 @@ function oilsMethodException( status, statusCode ) {
        }
 }
 
+oilsBrokenSession.prototype = new oilsException();
+oilsBrokenSession.prototype.constructor = oilsBrokenSession;
+oilsBrokenSession.prototype.baseClass = oilsException.prototype.constructor;
+
+/** broken session exception */
+function oilsBrokenSession( status, statusCode ) {
+       if( status && statusCode ) {
+               this._initResponse( "oilsBrokenSession", status, statusCode );
+       }
+}
+
 
 // -----------------------------------------------------------------------------
 // oilsScalar