Exception: Stone::Error::Overflow
- Inherits:
-
Stone::Error
- Object
- StandardError
- Stone::Error
- Stone::Error::Overflow
- Defined in:
- lib/stone/error/overflow.rb
Instance Attribute Summary collapse
-
#literal ⇒ Object
readonly
Returns the value of attribute literal.
Attributes inherited from Stone::Error
Instance Method Summary collapse
-
#initialize(message = nil, location:, literal:) ⇒ Overflow
constructor
A new instance of Overflow.
Constructor Details
#initialize(message = nil, location:, literal:) ⇒ Overflow
10 11 12 13 14 |
# File 'lib/stone/error/overflow.rb', line 10 def initialize( = nil, location:, literal:) @literal = literal ||= "Overflow Error: #{literal} falls outside 64-bit Int range at line #{location.line}, column #{location.column}" super(, location: location) end |
Instance Attribute Details
#literal ⇒ Object (readonly)
Returns the value of attribute literal.
8 9 10 |
# File 'lib/stone/error/overflow.rb', line 8 def literal @literal end |