Skip to content

Type Alias: ErrorDescription ​

ErrorDescription = object

The error number and message of an error, as describeError() gives them and the HTTP responders answer them ({errno, errMsg}).

Properties ​

errMsg ​

errMsg: string

The errMsg of the error, else its message, else the error converted to a string.


errno ​

errno: string | number

The errno of the error, else its code, else 'E_UNKNOWN'.

Released under the MIT License.