[Feature] Throw exceptions instead of logging errors manually #770
Labels
Feature
Adding a new feature, or substantial improvements on existing functionality
Medium Priority
Needs attention, not urgent
Feature Description
At the moment whenever an error occurs while using controlpanel we usually just log the error in the error log and may or may not return the correct http code. Usually it's just a HTTP 500 which does say nothing.
Solution Idea
We should create and use custom exceptions to be thrown when specific errors happen. That would not only make debugging easier but would also help users to fix their own issues.
This is also a way better strategy when implementing (and using) the controlpanel api.
Additional Info
No response
The text was updated successfully, but these errors were encountered: