imemento / exceptions
HTTP Exceptions
Installs: 2 621
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: ^8.0
- ramsey/uuid: ^4.0
Requires (Dev)
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2024-10-26 21:03:59 UTC
README
This package provides some common exceptions to be used in all iMemento Services.
Install
composer require imemento/exceptions
Usage
throw new ResourceException($message, $debug, $code, $previous);
All our exceptions that extend the HttpException class have a unique id, optional debug info and an error code. They will be mapped to a specific response from http-responses using our custom error handler.