class ApiClient::Exceptions::Generic
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
Public Class Methods
initialize()
click to toggle source
Initialize a new exception.
@return [Generic] a new exception.
Calls superclass method
# File lib/api-client/exceptions/generic.rb, line 8 def self.initialize super('An Error Occurred!') end