NameError
Defined in: names.ts:29
Thrown by name resolvers with a machine-readable NameErrorCode.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new NameError(
code,message,detail?):NameError
Defined in: names.ts:31
Parameters
Section titled “Parameters”message
Section titled “message”string
detail?
Section titled “detail?”cause?
Section titled “cause?”unknown
chain?
Section titled “chain?”string
string
Returns
Section titled “Returns”NameError
Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”
readonlycode:NameErrorCode
Defined in: names.ts:32
detail
Section titled “detail”
readonlydetail:object={}
Defined in: names.ts:34
cause?
Section titled “cause?”
optionalcause?:unknown
chain?
Section titled “chain?”
optionalchain?:string
optionalname?:string
readonlyname:"NameError"='NameError'
Defined in: names.ts:30
Overrides
Section titled “Overrides”Error.name