Weave Code
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.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle