Exception: Vox::HTTP::Error

Inherits:
Error
  • Object
show all
Defined in:
lib/vox/http/error.rb

Overview

Standard API errors for bad requests

Defined Under Namespace

Classes: BadRequest, Forbidden, GatewayUnavailable, MethodNotAllowed, NotFound, ServerError, TooManyRequests, Unauthorized

Instance Attribute Summary collapse

Instance Attribute Details

#dataHash<Symbol, Object> (readonly)

Returns The response object.

Returns:

  • (Hash<Symbol, Object>)

    The response object



8
9
10
# File 'lib/vox/http/error.rb', line 8

def data
  @data
end

#traceString? (readonly)

Returns The trace identifier this error originated from.

Returns:

  • (String, nil)

    The trace identifier this error originated from.



11
12
13
# File 'lib/vox/http/error.rb', line 11

def trace
  @trace
end