Exception: Kaitai::Struct::ValidationExprError

Inherits:
ValidationFailedError show all
Defined in:
lib/kaitai/struct/struct.rb

Overview

Signals validation failure: we required “actual” value to match the expression, but it turned out that it doesn’t.

Instance Method Summary collapse

Constructor Details

#initialize(actual, io, src_path) ⇒ ValidationExprError

Returns a new instance of ValidationExprError.



651
652
653
654
655
# File 'lib/kaitai/struct/struct.rb', line 651

def initialize(actual, io, src_path)
  actual_repr = Stream.inspect_values(actual)
  super("not matching the expression, got #{actual_repr}", io, src_path)
  @actual = actual
end