Link Search Menu Expand Document

Exception constructor

Explanation Initialize the Exception object.
Call format var ex = new Exception ( method , code , message )
Return value Exception object
Arguments String method Specifies the value of the Method property.
integer code Specifies the value of the Code property
String message Specifies the value of the Message property
Exception None
Example of use
if (data == 0) {
    throw new Exception ("APP1", 1, "data is 0 ") ;
}
Related item