leonhard-s / auraxium

A high-level Python wrapper for the PlanetSide 2 API.
https://auraxium.readthedocs.io/
MIT License
28 stars 8 forks source link

Improve payload parsing errors #28

Closed leonhard-s closed 3 years ago

leonhard-s commented 3 years ago

When an error is encountered when parsing a payload, the root converter function' (e.g. int(<something>'s) ValueError propagates out to the user.

Instead, this should be wrapped in a neat PayloadError informing the user that the payload encountered could not be parsed.