Exception: Clubhouse::ClubhouseAPIError
- Inherits:
-
StandardError
- Object
- StandardError
- Clubhouse::ClubhouseAPIError
- Defined in:
- lib/clubhouse2/exceptions.rb
Instance Method Summary collapse
-
#initialize(response) ⇒ ClubhouseAPIError
constructor
A new instance of ClubhouseAPIError.
Constructor Details
#initialize(response) ⇒ ClubhouseAPIError
Returns a new instance of ClubhouseAPIError.
9 10 11 |
# File 'lib/clubhouse2/exceptions.rb', line 9 def initialize(response) super('api error (%d): %s' % [ response.code, response.to_s ]) end |