TodoistRequestError
Extends
CustomError
Constructors
Constructor
new TodoistRequestError(
message: string,
httpStatusCode?: number,
responseData?: unknown): TodoistRequestError;
Parameters
Parameter | Type |
---|---|
message | string |
httpStatusCode? | number |
responseData? | unknown |
Returns
TodoistRequestError
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
isError()
static isError(error: unknown): error is Error;
Indicates whether the argument provided is a built-in Error instance or not.
Parameters
Parameter | Type |
---|---|
error | unknown |
Returns
error is Error
Inherited from
CustomError.isError