H.lang.IllegalOperationError
Class Summary
This class encapsulates an error to throw on an illegal operation.
[ For full details, see the Class Details ]
Class Description
This class encapsulates an error to throw on an illegal operation.
Example
Foo.prototype.bar = function() {
if(this.isDisposed()) {
throw new H.lang.IllegalOperationError(H.Foo.prototype.bar, 'Instance already disposed');
}
}
Constructor Details
H.lang.IllegalOperationError(opt_caller, opt_message)
- Parameters:
-
opt_caller
: -
{Function=} [optional]
- The calling function
-
opt_message
: -
{*=} [optional]
- The text of the error message to output