I am working on a custom error constructor for my seed project. I had a few objectives in mind when I started.
- When in production, these errors need to be able to be serialized for logging.
- When in development, I can easily throw these errors should I need additional feedback on to what is going on.
- Any addon plugins made can use or extend the custom error type and still satisfy the first two objective with ease.