Error thrown when a Star Comms API call fails.

Hierarchy

  • Error
    • StarCommsError

Constructors

  • Parameters

    • statusCode: number

      HTTP status code from the shard (or 500 for client-side errors)

    • message: string

    Returns StarCommsError

Properties

cause?: unknown
message: string
name: string
stack?: string
statusCode: number

HTTP status code from the shard (or 500 for client-side errors)

prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: Object
    • OptionalconstructorOpt: Function

    Returns void