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.
AdapterNotDefinedclass AdapterNotDefined extends Logic implements NotFound
$mySQL = DB::createAdapter('MySQL'); // success
$pgSQL = DB::createAdapter('PgSQL'); // success
$wtfSQL = DB::createAdapter('WtfSQL'); // fail: Adapter "wtfSQL" is not defined for "DB"
__construct([$adapter, $service [, $previous, $thrower])$adapter - the name of adapter$service - the service or its namegetAdapter():stringgetService():object|stringHow can I help you explore Laravel packages today?