Error
Module | ejs |
Definition | dynamic class Error |
Inheritance | Error ![]() |
Base class for error exception objects.
Exception objects are created by the system as part of changing
the normal flow of execution when some error condition occurs.
When an exception is created and acted upon ("thrown"), the system transfers the flow of control to a
pre-defined instruction stream (the handler or "catch" code). The handler may return processing to the
point at which the exception was thrown or not. It may re-throw the exception or pass control up the call stack.
Properties
Qualifiers | Property | Type | Description |
---|---|---|---|
public | message | String | Exception error message. |
public | stack | String | Execution stack backtrace. Contains the execution stack backtrace at the time the exception was thrown. |
public get set | code | Number | Optional error code. |
Error Methods
Qualifiers | Method |
---|---|
Error(message: String = null) | |
Construct a new Error object. |
Method Detail
public Error(message: String = null)
Construct a new Error object.
- Parameters
message: String Message to use when defining the Error.message property. [default: null]