Exception: Seahorse::Client::NetworkingError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error, msg = nil) ⇒ NetworkingError

Returns a new instance of NetworkingError.



5
6
7
8
9
# File 'lib/seahorse/client/networking_error.rb', line 5

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.



11
12
13
# File 'lib/seahorse/client/networking_error.rb', line 11

def original_error
  @original_error
end