Error.number (Property)

A property that corresponds to the number argument in the constructor function.


JavaScript - 1.5
JScript - 5.0
Internet Explorer - 5.0
Netscape - 6.0
Property/method value type:Number primitive
JavaScript syntax:-myError.number

This is the error number your custom error will be registered under. Unless you change it by assigning a new value to this property, it will contain the value that was passed in the number argument to the constructor function.

The number is a 32 bit value consisting of a facility code and an error number. The upper 16 bits is the facility code and the lower 16 bits the error number within that facility.