Exception: Buckaruby::ConnectionException

Inherits:
BuckarooException show all
Defined in:
lib/buckaruby/exception.rb

Overview

Exception raised when a request to Buckaroo fails because of connection problems.

Instance Method Summary collapse

Constructor Details

#initialize(exception) ⇒ ConnectionException

Returns a new instance of ConnectionException.



42
43
44
45
# File 'lib/buckaruby/exception.rb', line 42

def initialize(exception)
  message = "Error connecting to Buckaroo: #{exception.message} (#{exception.class})"
  super(message)
end