Exception: Kaitai::Struct::KaitaiStructError

Inherits:
Exception
  • Object
show all
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.

Instance Method Summary collapse

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