Error

Moduleejs
Definitiondynamic class Error
InheritanceError inherit Object

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

QualifiersPropertyTypeDescription
public messageStringException error message.
public stackStringExecution stack backtrace. Contains the execution stack backtrace at the time the exception was thrown.
public get setcodeNumberOptional error code.

Error Methods

QualifiersMethod
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]