Exception: Seahorse::Client::Http::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/seahorse/client/http/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error, msg = nil) ⇒ Error

Returns a new instance of Error.



6
7
8
9
10
# File 'lib/seahorse/client/http/error.rb', line 6

def initialize(error, msg = nil)
  super(msg || error.message)
  set_backtrace(error.backtrace)
  @original_error = error
end

Instance Attribute Details

#original_errorObject (readonly)

Returns the value of attribute original_error.



12
13
14
# File 'lib/seahorse/client/http/error.rb', line 12

def original_error
  @original_error
end