Exception: Qrb::TypeError
Overview
class Error
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(msg, cause = nil, location = nil) ⇒ TypeError
constructor
A new instance of TypeError.
Constructor Details
#initialize(msg, cause = nil, location = nil) ⇒ TypeError
Returns a new instance of TypeError.
15 16 17 18 |
# File 'lib/qrb/errors.rb', line 15 def initialize(msg, cause = nil, location = nil) super(msg, cause) @location = location || '' end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
19 20 21 |
# File 'lib/qrb/errors.rb', line 19 def location @location end |