Exception: Hyperdrive::Errors::JSONParseError

Inherits:
HTTPError
  • Object
show all
Defined in:
lib/hyperdrive/errors/json_parse_error.rb

Instance Attribute Summary

Attributes inherited from HTTPError

#http_status_code, #message

Instance Method Summary collapse

Constructor Details

#initializeJSONParseError

Returns a new instance of JSONParseError.



4
5
6
7
# File 'lib/hyperdrive/errors/json_parse_error.rb', line 4

def initialize
  @http_status_code = 400
  @message = 'The JSON sent in the request cannot be parsed due to bad syntax.'
end