Properties

Properties

message  string

The human-readable description of the error. The message property combined with the name property is used by the Error.prototype.toString() method to create a string representation of the Error.

name  string

The name property represents a name for the type of error. The name property, in addition to the message property, is used by the Error.prototype.toString() method to create a string representation of the error.

stack  string

The non-standard stack property of Error objects offer a trace of which functions were called, in what order, from which line and file, and with what arguments. The stack string proceeds from the most recent calls to earlier ones, leading back to the original global scope call.

See the following reference for more details: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/Stack