JavaScript tutorial:
number property

 

See Also: description property

The number property sets the numeric value associated with a specific error. The Error object's default property is number.

Syntax

object.number [= errornumber]

The number property syntax has these parts:

Part

Description

object

Any instance of the Error object.

errornumber

An integer representing an error.

Return value

Returns the numeric value associated with a specific error.

Remarks

An error number is a 32-bit value. The upper 16-bit word is the facility code, while the lower word is the actual error code.

Applies to: Error object