Those are not used anymore by current versions of the compiler and code relying especially on the UnexpectedDataError won't behave as expected at runtime. New exceptions need to be catched instead and the deprecation at least provides a warning in many IDEs.
Those are not used anymore by current versions of the compiler and code relying especially on the UnexpectedDataError won't behave as expected at runtime. New exceptions need to be catched instead and the deprecation at least provides a warning in many IDEs.
This is related to https://github.com/kaitai-io/kaitai_struct/issues/750.