Exception: Miu::WrappedError

Inherits:
Error
  • Object
show all
Defined in:
lib/miu/errors.rb

Direct Known Subclasses

MessageLoadError, PacketLoadError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ WrappedError

Returns a new instance of WrappedError.



8
9
10
11
# File 'lib/miu/errors.rb', line 8

def initialize(error)
  @error = error
  super "#{@error.class}: #{@error.to_s}"
end

Instance Attribute Details

#errorObject

Returns the value of attribute error.



6
7
8
# File 'lib/miu/errors.rb', line 6

def error
  @error
end