Exception: JsonApiClient::Errors::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- JsonApiClient::Errors::ApiError
- Defined in:
- lib/json_api_client/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
Instance Method Summary collapse
-
#initialize(env, msg = nil) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(env, msg = nil) ⇒ ApiError
Returns a new instance of ApiError.
8 9 10 11 12 13 14 |
# File 'lib/json_api_client/errors.rb', line 8 def initialize(env, msg = nil) @env = env # Try to fetch json_api errors from response msg = track_json_api_errors(msg) super msg end |
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
6 7 8 |
# File 'lib/json_api_client/errors.rb', line 6 def env @env end |