Exception: Monolens::LensError

Inherits:
Error
  • Object
show all
Defined in:
lib/monolens/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, location = []) ⇒ LensError

Returns a new instance of LensError.



5
6
7
8
# File 'lib/monolens/error.rb', line 5

def initialize(message, location = [])
  super(message)
  @location = location
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



9
10
11
# File 'lib/monolens/error.rb', line 9

def location
  @location
end