jsx3.lang.Exception:
try {
tryIt(); // code that may throw a native error (null-pointer, etc)
// or an instance of jsx3.Exception
} catch (e) {
e = jsx3.NativeError.wrap(e);
// now e is guaranteed to be an instance of jsx3.Exception
window.alert(e.printStackTrace());
}
| Constructor Summary | |
|---|---|
| void | The instance initializer. |
| Method Summary | |
|---|---|
| String | Returns the URL of the JavaScript include where this error was raised. |
| int | Returns the line number in the JavaScript include where this error was raised. |
| String | Returns the native message for this error. |
| String | getName() Returns the native browser name for this error. |
| static void | initErrorCapture(fctTrap : Function) Initializes the error trapping mechanism. |
| boolean | Deprecated. |
| String | toString() Returns the native error as a human-readable string. |
| static jsx3.lang.Exception | wrap(objError : jsx3.lang.Exception | Object) Wraps a native browser exception in an instance of NativeError. |
| Methods Inherited From jsx3.lang.Exception |
|---|
| getCause, getStack, printStackTrace |
| Methods Inherited From jsx3.lang.Object |
|---|
| clone, equals, eval, getClass, getInstanceOf, getInstanceOfClass, getInstanceOfPackage, instanceOf, isInstanceOf, isSubclassOf, jsxmix, jsxsuper, jsxsupermix, setInstanceOf |
| Constructor Detail |
|---|
objException is not a native browser error. Use
NativeError.wrap() if the type of caught object is unknown.| Method Detail |
|---|
NativeError. This method also accepts
an argument of type jsx3.Exception, in which case it will just return the argument. This method wraps
any other type of argument by converting it to a string and and creating a new jsx3.Exception with that message.