Exception: EY::ApiHMAC::BaseConnection::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- EY::ApiHMAC::BaseConnection::ValidationError
- Defined in:
- lib/ey_api_hmac/base_connection.rb
Instance Attribute Summary collapse
-
#error_messages ⇒ Object
readonly
Returns the value of attribute error_messages.
Instance Method Summary collapse
-
#initialize(response) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(response) ⇒ ValidationError
34 35 36 37 38 39 40 41 |
# File 'lib/ey_api_hmac/base_connection.rb', line 34 def initialize(response) json_response = JSON.parse(response.body) = json_response["error_messages"] super("error: #{@error_messages.join("\n")}") rescue => e = [] super("error: #{response.body}") end |
Instance Attribute Details
#error_messages ⇒ Object (readonly)
Returns the value of attribute error_messages.
32 33 34 |
# File 'lib/ey_api_hmac/base_connection.rb', line 32 def end |