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

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.
andydefer/laravel-notification
adachsoft/cli-process-tester
jhaskell13/laraflow
sebastienheyd/boilerplate-media-manager
ccast/tagixo-primix
pretendtrue/laravel-builder
sawmainek/laravel-scout-tntsearch-driver
tomshaw/laravel-calendar-table
dibakar/laravel-ownership
steadrun/laravel-monitor
labyrinthe/connect-laravel
elmogy/layan
drewdan/sentinel-client
dskripchenko/laravel-llm
fatryst/nuonuo
stevenay/myanfont
gmostafa/php-graphql-client
xeviant/paystack
snowsoft/faker
meditationsteps/blogetc