Exception: Kaitai::Struct::ValidationNotAnyOfError
- Inherits:
-
ValidationFailedError
- Object
- Exception
- KaitaiStructError
- ValidationFailedError
- Kaitai::Struct::ValidationNotAnyOfError
- Defined in:
- lib/kaitai/struct/struct.rb
Overview
Signals validation failure: we required “actual” value to be any of the given list, but it turned out that it’s not.
Instance Method Summary collapse
-
#initialize(actual, io, src_path) ⇒ ValidationNotAnyOfError
constructor
A new instance of ValidationNotAnyOfError.
Constructor Details
#initialize(actual, io, src_path) ⇒ ValidationNotAnyOfError
Returns a new instance of ValidationNotAnyOfError.
640 641 642 643 644 |
# File 'lib/kaitai/struct/struct.rb', line 640 def initialize(actual, io, src_path) actual_repr = Stream.inspect_values(actual) super("not any of the list, got #{actual_repr}", io, src_path) @actual = actual end |