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.
FieldNotExistsclass FieldNotExists extends Logic implements NotFound
The container contains fixed set of fields. Attempt to access a non-existent field, usually a consequence of misspelling (logic error).
/**
* [@property](https://github.com/property) string $name
* [@property](https://github.com/property) string $email
*/
class User
{
// ...
}
$user = new User();
$user->emial = 'my@example.com'; // Field "emial" is not exist in "User"
__construct([$key, $container [, $previous, $thrower])$key - the name of field$container - the container or its namegetKey():stringgetContainer():object|stringHow can I help you explore Laravel packages today?