Exception: TsJsonApi::ApiLimitExceededException
- Defined in:
- lib/ts_json_api/exceptions.rb
Overview
This exception is thrown when the API limit is exceeded (400 repsonse)
Instance Attribute Summary
Attributes inherited from Exception
#http_code, #message, #rest_client_exception
Instance Method Summary collapse
-
#initialize(*args) ⇒ ApiLimitExceededException
constructor
A new instance of ApiLimitExceededException.
Methods inherited from Exception
Constructor Details
#initialize(*args) ⇒ ApiLimitExceededException
Returns a new instance of ApiLimitExceededException.
27 28 29 30 31 32 |
# File 'lib/ts_json_api/exceptions.rb', line 27 def initialize(*args) = args. .merge! http_code: 400 super self. = 'API Limit Exceeded' end |