Exception: Qrb::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/qrb/errors.rb

Direct Known Subclasses

TypeError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, cause = nil) ⇒ Error

Returns a new instance of Error.



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

def initialize(msg, cause = nil)
  super(msg)
  @cause = cause
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



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

def cause
  @cause
end