Exception: BitInt::OverflowError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- BitInt::OverflowError
- Defined in:
- lib/bitint/overflow_error.rb
Overview
Indicates that BitInt::Base.create was called with an integer that was too large.
Instance Attribute Summary collapse
-
#integer ⇒ Object
readonly
Returns the value of attribute integer.
-
#range ⇒ Object
readonly
Returns the value of attribute range.
Instance Method Summary collapse
-
#initialize(integer, range) ⇒ OverflowError
constructor
A new instance of OverflowError.
Constructor Details
#initialize(integer, range) ⇒ OverflowError
Returns a new instance of OverflowError.
9 10 11 12 13 |
# File 'lib/bitint/overflow_error.rb', line 9 def initialize(integer, range) super "#{integer} is out of bounds (range=#{range})" @integer = integer @range = range end |
Instance Attribute Details
#integer ⇒ Object (readonly)
Returns the value of attribute integer.
7 8 9 |
# File 'lib/bitint/overflow_error.rb', line 7 def integer @integer end |
#range ⇒ Object (readonly)
Returns the value of attribute range.
7 8 9 |
# File 'lib/bitint/overflow_error.rb', line 7 def range @range end |