Hierarchy (view full)

Constructors

  • Parameters

    • body: {
          error?: {
              code: "Failed" | "RequestCannotBeParsed";
              message: string;
          };
      }
      • Optional error?: {
            code: "Failed" | "RequestCannotBeParsed";
            message: string;
        }

        ErrorUpdateEvent400ResponseError

        • code: "Failed" | "RequestCannotBeParsed"

          Description

          Error code: * RequestCannotBeParsed - the JSON content of the request contains some errors that prevented us from parsing it (wrong type/surpassed limits) * Failed - the event is more than 10 days old and cannot be updated

          Example

          RequestCannotBeParsed
          @enum {string}
        • message: string

          Description

          Details about the underlying issue with the input payload

          Example

          suspect flag must be a boolean
          
    • response: Response

    Returns UpdateEventError400

Properties

cause?: unknown
errorCode: string
message: string
name: string
response: Response
responseBody: {
    error?: {
        code: "Failed" | "RequestCannotBeParsed";
        message: string;
    };
}

Type declaration

  • Optional error?: {
        code: "Failed" | "RequestCannotBeParsed";
        message: string;
    }

    ErrorUpdateEvent400ResponseError

    • code: "Failed" | "RequestCannotBeParsed"

      Description

      Error code: * RequestCannotBeParsed - the JSON content of the request contains some errors that prevented us from parsing it (wrong type/surpassed limits) * Failed - the event is more than 10 days old and cannot be updated

      Example

      RequestCannotBeParsed
      @enum {string}
    • message: string

      Description

      Details about the underlying issue with the input payload

      Example

      suspect flag must be a boolean
      
stack?: string
statusCode: 400
prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

    • (err, stackTraces): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void