Exception: Binstream::StreamOverrunError

Inherits:
ParseError
  • Object
show all
Defined in:
lib/binstream/errors.rb

Instance Method Summary collapse

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