Exception: Kaitai::Struct::KaitaiStructError
- Inherits:
-
Exception
- Object
- Exception
- Kaitai::Struct::KaitaiStructError
- Defined in:
- lib/kaitai/struct/struct.rb
Overview
Common ancestor for all error originating from Kaitai Struct usage. Stores KSY source path, pointing to an element supposedly guilty of an error.
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(msg, src_path) ⇒ KaitaiStructError
constructor
A new instance of KaitaiStructError.
Constructor Details
#initialize(msg, src_path) ⇒ KaitaiStructError
Returns a new instance of KaitaiStructError.
573 574 575 576 |
# File 'lib/kaitai/struct/struct.rb', line 573 def initialize(msg, src_path) super("#{src_path}: #{msg}") @src_path = src_path end |