Class: IllegalOperationError

H.lang.IllegalOperationError

new H.lang.IllegalOperationError (opt_caller, opt_message)

This class encapsulates an error to throw on an illegal operation.

Name Type Description
opt_caller function optional

The calling function

opt_message * optional

The text of the error message to output

Example
Foo.prototype.bar = function() {
  if(this.isDisposed()) {
    throw new H.lang.IllegalOperationError(H.Foo.prototype.bar, 'Instance already disposed');
  }
}