Exception: Baloo::NetworkError

Inherits:
Error
  • Object
show all
Defined in:
lib/baloo/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(original = $!) ⇒ NetworkError

Returns a new instance of NetworkError.



19
20
21
22
23
24
25
26
# File 'lib/baloo/error.rb', line 19

def initialize(original = $!)
  if original.nil?
    super
  else
    super(original.message)
  end
  @original = original
end

Instance Attribute Details

#originalObject (readonly)

Returns the value of attribute original.



17
18
19
# File 'lib/baloo/error.rb', line 17

def original
  @original
end