Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Excerpt |
---|
Outputs the message as an exception. |
Notes
Converts the message in to a single line if it is an array.
Throws a new exception with the message as the Error.message property. If uncaught, the calling code stack will be terminated and an error message dumped in to the logs.
See Error Handling for more details.
If the self parameter is specified, the message will be prefixed with the filename and version defined in the Self Descriptor Object.
Example
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
try { out("hello", null, out.ERROR); // creates an error message "hello" } catch(e) { e.message; // "hello" } |
Div | ||||||
---|---|---|---|---|---|---|
| ||||||
Availability
Requires:
|
Div | ||||||
---|---|---|---|---|---|---|
| ||||||
See alsoRelated constants:
|