Exception: Qrb::TypeError

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

Overview

class Error

Instance Attribute Summary collapse

Attributes inherited from Error

#cause

Instance Method Summary collapse

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

#locationObject (readonly)

Returns the value of attribute location.



19
20
21
# File 'lib/qrb/errors.rb', line 19

def location
  @location
end