ParchmentMC / Feather

Library for common data objects used by ParchmentMC projects.
MIT License
4 stars 6 forks source link

Incorporate context for exceptions in IO adapters #11

Open sciwhiz12 opened 10 months ago

sciwhiz12 commented 10 months ago

To aid in debugging, the IO adapters should incorporate in some fashion some contextual information for the object they're reading. Packages and classes should have the name, methods and fields should have the name and descriptor, and parameters should have the index.

If possible, the information should also contain the information about its parent -- methods and fields include info about their owning class, and parameters include info about their owning method.

This will probably take the form of try...catch blocks around our reading and writing methods in each adapter.