function JSRuntimeException(b,a){this._init(b,a)}JSRuntimeException.prototype._init=function(b,a){this._message="";this._cause=null;if(typeof(b)=="string"&&b.length>0){this._message=b}if(a!=undefined){this.initCause(a)}};JSRuntimeException.prototype.initCause=function(a){if(this._cause==null){if(a instanceof JSInvalidArgumentException){this._cause=a}else{throw new JSInvalidArgumentException("exception cause must be a instance of a subclass of JSInvalidArgumentException")}}else{throw new JSInvalidArgumentException("the cause for this exception has already been initialized")}};JSRuntimeException.prototype.getMessage=function(){return this._message};JSRuntimeException.prototype.getCause=function(){return this._cause};JSRuntimeException.prototype.toString=function(){var a=this.constructor.toString();var b=a.substring(a.indexOf(" "),a.indexOf("("));return b+": "+this.getMessage()};JSInvalidArgumentException.prototype=new JSRuntimeException();JSInvalidArgumentException.prototype.constructor=JSInvalidArgumentException;JSInvalidArgumentException.superClass=JSRuntimeException.prototype;function JSInvalidArgumentException(b,a){JSInvalidArgumentException.superClass._init.call(this,b,a)}JSInvalidElementIdException.prototype=new JSRuntimeException();JSInvalidElementIdException.prototype.constructor=JSInvalidElementIdException;JSInvalidElementIdException.superClass=JSRuntimeException.prototype;function JSInvalidElementIdException(b,a){JSInvalidElementIdException.superClass._init.call(this,b,a)}JSDoesNotSupportException.prototype=new JSRuntimeException();JSDoesNotSupportException.prototype.constructor=JSDoesNotSupportException;JSDoesNotSupportException.superClass=JSRuntimeException.prototype;function JSDoesNotSupportException(b,a){JSDoesNotSupportException.superClass._init.call(this,b,a)}JSNotImplementedException.prototype=new JSRuntimeException();JSNotImplementedException.prototype.constructor=JSNotImplementedException;JSNotImplementedException.superClass=JSRuntimeException.prototype;function JSNotImplementedException(b,a){JSNotImplementedException.superClass._init.call(this,b,a)};
