Error API

The Error global object is a constructor for error objects that are thrown when runtime errors occur.

7 Total 2 Methods 5 Properties 2 Statics
  Show all

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()

message

property

Error message. For user-created Error objects, this is the string provided as the constructor's first argument. e.message

You seem to be offline. App may not work.