TodoistRequestError
Extends
CustomError
Constructors
new TodoistRequestError()
new TodoistRequestError(
message: string,
httpStatusCode?: number,
responseData?: unknown): TodoistRequestError
Parameters
Parameter | Type |
---|---|
message | string |
httpStatusCode ? | number |
responseData ? | unknown |
Returns
Overrides
CustomError.constructor
Properties
Property | Modifier | Type | Description |
---|---|---|---|
cause? | public | unknown | - |
httpStatusCode? | public | number | - |
message | public | string | - |
name | public | string | - |
responseData? | public | unknown | - |
stack? | public | string | - |
prepareStackTrace? | static | (err : Error , stackTraces : CallSite []) => any | Optional override for formatting stack traces See https://github.com/v8/v8/wiki/Stack%20Trace%20API#customizing-stack-traces |
stackTraceLimit | static | number | - |
Methods
isAuthenticationError()
isAuthenticationError(): boolean
Returns
boolean
captureStackTrace()
static captureStackTrace(targetObject: object, constructorOpt?: Function): void
Create .stack property on a target object
Parameters
Parameter | Type |
---|---|
targetObject | object |
constructorOpt ? | Function |
Returns
void
Inherited from
CustomError.captureStackTrace