Exception: Binstream::InvalidBooleanValueError

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

Instance Method Summary collapse

Constructor Details

#initialize(bad_value, position) ⇒ InvalidBooleanValueError

Returns a new instance of InvalidBooleanValueError.



29
30
31
# File 'lib/binstream/errors.rb', line 29

def initialize(bad_value, position)
  super(sprintf("Expected boolean value of 1 or 0, but got %d (0x%02X) pos=%d", bad_value, bad_value, position))
end