Skip to main content

DefaultBasicError

__type(err: Error,stackTraces: CallSite[]): any

Properties

(Mandatory properties are in bold)
PropertiesTypeDescription
captureStackTracecaptureStackTrace(targetObject: object,constructorOpt: Function): voidCreate .stack property on a target object
codestring | number
constructornew DefaultBasicError(message: string,code: string | number,payload: AnonymousObject<any>)
messagestring
namestring
ofof(error: unknown): BasicError
payloadAnonymousObject<any>
stackTraceLimitnumber
Additional properties for advanced use cases
PropertiesTypeDescription
causeunknown
prepareStackTrace
stackstring