Exception: Kaitai::Struct::ValidationFailedError

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

Overview

Common ancestor for all validation failures. Stores pointer to KaitaiStream IO object which was involved in an error.

Instance Method Summary collapse

Constructor Details

#initialize(msg, io, src_path) ⇒ ValidationFailedError

Returns a new instance of ValidationFailedError.



593
594
595
596
# File 'lib/kaitai/struct/struct.rb', line 593

def initialize(msg, io, src_path)
  super("at pos #{io.pos}: validation failed: #{msg}", src_path)
  @io = io
end