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

Opts: the global options

The class axy\errors\Opts allows you to globally configure the follow options:

  • howTruncateTrace
  • truncateNativeTrace

See for details.

Since PHP 7 truncate native trace is not supported.

Setters:

  • Opts::setHowTruncateTrace(mixed)
  • Opts::setTruncateNativeTrace(bool)

Getters:

  • Opts::getHowTruncateTrace():mixed
  • Opts::getTruncateNativeTrace():bool

Global settings and static method it is usually bad. But since it does not affect the functionality, but only on debug information then it is acceptable.

Overriding properties as howTruncateTrace and truncateNativeTrace affects only the classes themselves and their children.

Setting values using Opts has an effect on all classes (except where overridden).

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.
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
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle