Exception: Hyperdrive::Errors::JSONParseError
- Defined in:
- lib/hyperdrive/errors/json_parse_error.rb
Instance Attribute Summary
Attributes inherited from HTTPError
Instance Method Summary collapse
-
#initialize ⇒ JSONParseError
constructor
A new instance of JSONParseError.
Constructor Details
#initialize ⇒ JSONParseError
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 |