Exception: Finitio::TypeError

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

Overview

class Error

Instance Attribute Summary collapse

Attributes inherited from Error

#cause

Instance Method Summary collapse

Methods inherited from Error

#root_cause

Constructor Details

#initialize(msg, cause = nil, location = nil) ⇒ TypeError

Returns a new instance of TypeError.



29
30
31
32
# File 'lib/finitio/errors.rb', line 29

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

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



33
34
35
# File 'lib/finitio/errors.rb', line 33

def location
  @location
end