mezon / rest-exception
Small rest-exception script
Installs: 10 162
Dependents: 3
Suggesters: 0
Security: 0
Stars: 3
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: >=7.2.0
Requires (Dev)
- phpunit/phpunit: ^8.5
- vimeo/psalm: ^4.2
This package is auto-updated.
Last update: 2024-11-11 23:57:59 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 ));