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.



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

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

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



11
12
13
# File 'lib/monolens/error.rb', line 11

def location
  @location
end