Class CommunicationError

Hierarchy

Constructors

Properties

Methods

Constructors

  • Parameters

    • httpMessage: null | Message

      The http message which was send

    • response: Response

      The received entity headers and content

    Returns CommunicationError

Properties

cause?: Error

The error cause

data?: Json

Additional Data to keep with the error

message: string

The error message

name: string

The name of the error

reason: string

The reason of the error

stack?: string

The error stack trace

status: number

The error response status code of this error

Methods

  • Wraps the given error into a persistent error, if the error is not already an persistent error

    Parameters

    • error: Error

      The error to wrap

    Returns error.PersistentError

Generated using TypeDoc