Exception: Kaitai::Struct::ValidationFailedError
- Inherits:
-
KaitaiStructError
- Object
- Exception
- KaitaiStructError
- Kaitai::Struct::ValidationFailedError
- 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.
Direct Known Subclasses
ValidationExprError, ValidationGreaterThanError, ValidationLessThanError, ValidationNotAnyOfError, ValidationNotEqualError
Instance Method Summary collapse
-
#initialize(msg, io, src_path) ⇒ ValidationFailedError
constructor
A new instance of ValidationFailedError.
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 |