Exception: Exceptions::ConnectionError
- Inherits:
-
StandardError
- Object
- StandardError
- Exceptions::ConnectionError
- Defined in:
- lib/capitan/exceptions/connection_error.rb
Instance Method Summary collapse
-
#initialize(error) ⇒ ConnectionError
constructor
A new instance of ConnectionError.
Constructor Details
#initialize(error) ⇒ ConnectionError
Returns a new instance of ConnectionError.
4 5 6 7 8 9 |
# File 'lib/capitan/exceptions/connection_error.rb', line 4 def initialize(error) = error. = if error.class == SocketError = if error.class == RestClient::Unauthorized super() end |