new Error(…)
Creates a new Error object.Error.Error([message, [options]])
cause
Error cause indicating the reason why the current error is thrown — usually another caught error.e.cause
message
Error message. For user-created Error objects, this is the string provided as the constructor's first argument.e.message
name
Error name. This is determined by the constructor function.e.name
Error.prototype
The prototype of the Error constructor.Error.prototype
stack
Stack trace. Non-standard but widely supported property that represents the stack trace.e.stack
toString()
Returns a string representing the specified Error object.e.toString()