Class jabberwerx.util.Error (MINIMAL)
Extends
Error.
JWApp's "native" error object. Just a wrapper/namespace so we can extend
Error objects pleasantly.
Constructor Attributes | Constructor Name and Description |
---|---|
jabberwerx.util.Error(message)
Creates a new jabberwerx.util.Error with the given message. |
Method Attributes | Method Name and Description |
---|---|
<static> |
jabberwerx.util.Error.extend(message, extension)
Create a new Error type.
|
Class Detail
jabberwerx.util.Error(message)
Creates a new jabberwerx.util.Error with the given message.
- Parameters:
- {String} message
- The error message.
Method Detail
<static>
{Function}
jabberwerx.util.Error.extend(message, extension)
Create a new Error type.
You can define the message and extension at declaration time (ie, defining the error class)
and then override it at creation time (ie, at the throw site) if desired.
- Parameters:
- {String} message
- Becomes the base Error object's message.
- {Object} extension
- Properties in this object are copied into the new error type's prototype.