Exception: Stone::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/stone/error.rb,
lib/stone/error/overflow.rb

Defined Under Namespace

Classes: Overflow

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, location: nil) ⇒ Error

Returns a new instance of Error.



6
7
8
9
# File 'lib/stone/error.rb', line 6

def initialize(message, location: nil)
  super(message)
  @location = location
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



4
5
6
# File 'lib/stone/error.rb', line 4

def location
  @location
end