Class: FaunaHTTPError

errors~FaunaHTTPError(requestResult)

new FaunaHTTPError(requestResult)

Base exception type for errors returned by the FaunaDB server.

Parameters:
Name Type Description
requestResult RequestResult
Source:

Extends

Members

description :string

Description for this exception.

Type:
  • string
Inherited From:
Source:

message :string

Message for this exception.

Type:
  • string
Inherited From:
Source:

name :string

Name of this exception.

Type:
  • string
Inherited From:
Source:

requestResult :RequestResult

A wrapped RequestResult object, containing the request and response context of the failed request.

Type:
Source:

Methods

(static) raiseForStatusCode(requestResult)

Takes a RequestResult and throws an appropriate exception if it contains a failed request.

Parameters:
Name Type Description
requestResult RequestResult
Source:

errors() → {Object}

Convenience method to return the errors from the response object.

Source:
Returns:
Type
Object