@AppKu/StashKu

@AppKu/StashKu

v1.0.46

Class

RESTError

Extends
  • Error

A RESTful error that can be used for actions processing requests and responses.

Constructor

new RESTError(codeopt, messageopt, innerErroropt)

Creates a new RESTful error with a HTTP-compliant status code.

Parameters

  • code Number <optional>

    A standard HTTP-compliant status code.

  • message String <optional>

    The error message.

  • innerError Error <optional>

    An inner error that was thrown.

Source

Members