DefaultBasicError
__type(err: Error,stackTraces: CallSite[]): any
Properties
(Mandatory properties are in bold)Properties | Type | Description |
---|---|---|
captureStackTrace | captureStackTrace(targetObject: object,constructorOpt: Function): void | Create .stack property on a target object |
code | string | number | |
constructor | new DefaultBasicError(message: string,code: string | number,payload: AnonymousObject<any>) | |
message | string | |
name | string | |
of | of(error: unknown): BasicError | |
payload | AnonymousObject<any> | |
stackTraceLimit | number |
Additional properties for advanced use cases
Properties | Type | Description |
---|---|---|
cause | unknown | |
prepareStackTrace | ||
stack | string |