Exception: Inttegro::NetworkError

Inherits:
Error
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/inttegro/errors.rb

Direct Known Subclasses

TimeoutError

Instance Attribute Summary collapse

Attributes inherited from Error

#report

Instance Method Summary collapse

Constructor Details

#initialize(message, original_error = nil) ⇒ NetworkError

Returns a new instance of NetworkError.



30
31
32
33
# File 'lib/inttegro/errors.rb', line 30

def initialize(message, original_error = nil)
  super(message)
  @original_error = original_error
end

Instance Attribute Details

#original_errorObject (readonly)

Returns the value of attribute original_error.



27
28
29
# File 'lib/inttegro/errors.rb', line 27

def original_error
  @original_error
end