Exception: Binstream::StreamOverrunError
- Inherits:
-
ParseError
- Object
- StandardError
- ParseError
- Binstream::StreamOverrunError
- Defined in:
- lib/binstream/errors.rb
Instance Method Summary collapse
-
#initialize(length, remaining, position) ⇒ StreamOverrunError
constructor
A new instance of StreamOverrunError.
Constructor Details
#initialize(length, remaining, position) ⇒ StreamOverrunError
Returns a new instance of StreamOverrunError.
17 18 19 |
# File 'lib/binstream/errors.rb', line 17 def initialize(length, remaining, position) super(sprintf("Overrun! Reading %d bytes (remaining=%d pos=%d)", length, remaining, position)) end |