mezon / rest-exception
Small rest-exception script
1.0.2
2021-08-11 16:53 UTC
Requires
- php: >=7.2.0
Requires (Dev)
- phpunit/phpunit: ^8.5
- vimeo/psalm: ^4.2
This package is auto-updated.
Last update: 2026-03-12 02:52:51 UTC
README
Installation
Just type
composer require mezon/rest-exception
Learn more
More information can be found here:
Usage
To use this class is very simple thing:
throw(new \Mezon\Rest\Exception( "", // message of the exception, like in the standard Exception class -1, // code of the exception, like in the standard Exception class 200, // HTTP code of the request "<p>Warning!" // HTTP request body ));