Exception: Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/types/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(err) ⇒ Error

Returns a new instance of Error.



3
4
5
6
# File 'lib/types/error.rb', line 3

def initialize(err)
  @err = err
  super(err)
end

Instance Attribute Details

#errObject (readonly)

Returns the value of attribute err.



2
3
4
# File 'lib/types/error.rb', line 2

def err
  @err
end