Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TwitarrError

Represents a Twitarr error.

Hierarchy

  • Error
    • TwitarrError

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new TwitarrError(message?: string, code?: number, errors?: any, options?: any, data?: any): TwitarrError
  • Create a new error.

    constructor

    Parameters

    • Optional message: string

      The error message.

    • Optional code: number

      An optional error code to associate with the error.

    • Optional errors: any
    • Optional options: any
    • Optional data: any

    Returns TwitarrError

Properties

Private data

data: any

Any other useful data.

Private errors

Any error messages that were returned from Twit-arr.

message

message: string

name

name: string

Private options

options: any

The options provided as part of the request that resulted in this error.

Optional stack

stack: string

Static Error

Error: ErrorConstructor

Accessors

code

  • get code(): number

simpleErrorMessage

  • get simpleErrorMessage(): any

Methods

toString

  • toString(): string

Generated using TypeDoc