-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
Description
The current exception classes are not neatly categorized, and when creating a new exception class, it is difficult to determine which exceptions to inherit and implement.
Also, when throwing exceptions, it is sometimes difficult to determine which exceptions to throw.
Click and see the class diagram:
source
In addition, the following questions arise.
- What is the difference between
AlertError,CriticalError, andEmergencyError? - What is the difference between an exception that extends
Errorand an exception that extendsException? - What is the difference between exceptions placed in
CodeIgniter/Exceptions/and exceptions placed in components such asCodeIgniter/Filters/? - In what cases do we implement
ExceptionInterface? - What is the
FrameworkException? - Do we need
CodeIgniter\Cache\Exceptions\ExceptionInterface? - Shouldn't there be
LogicException?
Another problem that has been found is that the exceptions thrown by database-related classes are disparate and not standardized. See #4331
It seems to me that we need to classify the exception classes in a way that is easy to understand, and also indicate what kind of exceptions we throw.
What are your thoughts?
Reactions are currently unavailable