Skip to main content

TodoistRequestError

Extends

  • CustomError

Constructors

new TodoistRequestError()

new TodoistRequestError(
message: string,
httpStatusCode?: number,
responseData?: unknown): TodoistRequestError

Parameters

ParameterType
messagestring
httpStatusCode?number
responseData?unknown

Returns

TodoistRequestError

Overrides

CustomError.constructor

Properties

PropertyModifierTypeDescription
cause?publicunknown-
httpStatusCode?publicnumber-
messagepublicstring-
namepublicstring-
responseData?publicunknown-
stack?publicstring-
prepareStackTrace?static(err: Error, stackTraces: CallSite[]) => anyOptional override for formatting stack traces See https://github.com/v8/v8/wiki/Stack%20Trace%20API#customizing-stack-traces
stackTraceLimitstaticnumber-

Methods

isAuthenticationError()

isAuthenticationError(): boolean

Returns

boolean


captureStackTrace()

static captureStackTrace(targetObject: object, constructorOpt?: Function): void

Create .stack property on a target object

Parameters

ParameterType
targetObjectobject
constructorOpt?Function

Returns

void

Inherited from

CustomError.captureStackTrace