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.
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours