Exception: Kaitai::Struct::ValidationNotAnyOfError

Inherits:
ValidationFailedError show all
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

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