Exception: JsonApiClient::Errors::ServerError
- Defined in:
- lib/json_api_client/errors.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from ApiError
Instance Method Summary collapse
-
#initialize(env, msg = nil) ⇒ ServerError
constructor
A new instance of ServerError.
Constructor Details
#initialize(env, msg = nil) ⇒ ServerError
Returns a new instance of ServerError.
51 52 53 54 55 56 57 58 59 |
# File 'lib/json_api_client/errors.rb', line 51 def initialize(env, msg = nil) msg ||= begin status = env.status = ::Rack::Utils::HTTP_STATUS_CODES[status] "#{status} #{}" end super env, msg end |