Exception: Callapi::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- Callapi::ApiError
- Defined in:
- lib/callapi/errors.rb
Direct Known Subclasses
ClientError, NotAuthorizedError, NotFoundError, RedirectionError, ServerError
Instance Method Summary collapse
-
#initialize(status, message) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(status, message) ⇒ ApiError
Returns a new instance of ApiError.
22 23 24 |
# File 'lib/callapi/errors.rb', line 22 def initialize(status, ) super "#{status}: #{}" end |