Share via


ErrorNo Property

Specifies the error number for an Exception object. Read/write at run time.

Exception.ErrorNo

Property Value

Numeric data type

Remarks

If the exception results from a THROW command that specifies a value for the eUserExpression parameter, the value of ErrorNo is 2071.

Identical to the value returned by the ERROR() function and the first element in the array produced by the AERROR() function.

See Also

Properties | Exception Object Properties, Methods, and Events | ERROR( ) Function | AERROR( ) Function | SYS(2018) - Error Message Parameter | TRY...CATCH...FINALLY Command | Structured Error Handling

Applies To: Exception Class