Custom error class for unexpected API response errors.

Hierarchy

  • ZepError
    • APIError

Constructors

Properties

Constructors

  • Constructs a new ZepError instance.

    Parameters

    • message: string

      The error message.

    • Optional code: number

      Optional error code associated with the error.

    • Optional responseData: any

      Optional response associated with the error.

    Returns APIError

Properties

code?: number
responseData?: any