Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Errors Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Exceptions provided by the library

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).

  • NotFound - an element of a container is not found
  • InvalidConfig (logic) - a configuration has invalid format
  • RequiresOverride (logic) - a method requires override
  • Init
    • AlreadyInited (logic) - attempt to initialize an already initialized object
    • NotInited (logic) - attempt to use not initialized object
  • Forbidden - an action is forbidden
  • ActionNotAllowed - this action is not allowed for this object
  • InvalidValue - wrong format of a values
  • DependencyError - an error associated with dependency (extension, composer package, plugin)
  • InvalidFormat - invalid format of some string

Constructors and methods

Constructors of all these classes take as last arguments (optional)

  • previous (Exception) - the previous exception used for the exception chaining
  • thrower (object|string) - see truncate backtrace

All other arguments also are optional.

Such arguments as container or service can be a string (the name of service) or an object (itself service).

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
gmostafa/php-graphql-client
xeviant/paystack
snowsoft/faker
meditationsteps/blogetc
animalyoung/laravel-influxdb
onix-solutions/sms-telera
lonely-lights/prosetta
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log