axy/errors
axy/errors is a PHP 8.1+ helper for defining and organizing exception classes. Provides common exception structures, basic error classes, default messages, backtrace truncation, and global options to standardize error handling across projects.
These classes you can directly use or define your classes on the basis of their.
All intermediate errors (which have children) are interfaces.
All classes are inherited from Error and from Runtime or Logic (indicated in parentheses).
Constructors of all these classes take as last arguments (optional)
previous (Exception) - the previous exception used for the exception chainingthrower (object|string) - see truncate backtraceAll other arguments also are optional.
Such arguments as container or service can be a string (the name of service) or an object (itself service).
How can I help you explore Laravel packages today?