Exception: ApiClient::Exceptions::Generic
- Inherits:
-
StandardError
- Object
- StandardError
- ApiClient::Exceptions::Generic
- Defined in:
- lib/api-client/exceptions/generic.rb
Overview
All other exceptions should extend this one. This exception was made to be easy to handle all possible errors on api requests with just one line:
rescue_from ApiClient::Exceptions::Generic, :with => :generic_error
Direct Known Subclasses
BadGateway, ConnectionRefused, Forbidden, InternalServerError, NotFound, NotPossible, ServiceUnavailable, Unauthorized
Class Method Summary collapse
-
.initialize ⇒ Generic
Initialize a new exception.
Class Method Details
.initialize ⇒ Generic
Initialize a new exception.
8 9 10 |
# File 'lib/api-client/exceptions/generic.rb', line 8 def self.initialize super('An Error Occurred!') end |