ErrorClass <Name>
Hierarchy
- Pretty<typeof CustomError>
- ErrorClass
Index
Constructors
constructor
constructor
Type parameters
- Properties: Record<string, any> = {}
Properties
readonlyerrorName
Error name
readonlyprototype
Methods
asString
Static method to convert an error to a string
hasInstance
Return true if anyValue is an instance of current class
Type parameters
- Class: new (...args: any) => any
Error constructor