Exception: ApiClient::Exceptions::Generic

Inherits:
StandardError
  • Object
show all
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

Class Method Summary collapse

Class Method Details

.initializeGeneric

Initialize a new exception.

Returns:


8
9
10
# File 'lib/api-client/exceptions/generic.rb', line 8

def self.initialize
  super('An Error Occurred!')
end