Class ErrorFromName

An error object.

Index

Constructor methods

Constructor methods

constructor(name: string, message?: string): ErrorFromName

Creates an Error object with the specified name and message properties.

constructor

Parameters

  • name: string

    The name of this error. The name is meant to be consumed programmatically and should not be localized.

  • message?: string optional

    The message for this error. The message is meant to be consumed by humans and should be localized.

Returns

ErrorFromName