Exception: Kaitai::Struct::ValidationExprError
- Inherits:
-
ValidationFailedError
- Object
- Exception
- KaitaiStructError
- ValidationFailedError
- Kaitai::Struct::ValidationExprError
- 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
-
#initialize(actual, io, src_path) ⇒ ValidationExprError
constructor
A new instance of ValidationExprError.
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 |