Download the PHP package boltics/http-exception without Composer
On this page you can find all versions of the php package boltics/http-exception. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download boltics/http-exception
More information about boltics/http-exception
Files in boltics/http-exception
Download boltics/http-exception
More information about boltics/http-exception
Files in boltics/http-exception
Vendor boltics
Package http-exception
Short Description An exception that contains http status code
License MIT
Homepage https://github.com/boltics/http-exception
Package http-exception
Short Description An exception that contains http status code
License MIT
Homepage https://github.com/boltics/http-exception
Please rate this library. Is it a good library?
Informations about the package http-exception
PHP Exception with http status code
A exception that extends PHP exception and also contains http status code.
Now you can easily manage your error code and http status code together!
Installation
Declaration
Usage
Documentation
__construct()
The constructor checks that the value exist in the enumgetHttpCode()
Returns http codesetHttpCode()
Set http codegetErrorCode()
Another approach to get exception codesetAdditionalData()
Set additional datagetAdditionalData()
Get additional dataappendAdditionalData()
Append data to the additional data
Static methods:
isValidHttpCode()
method Returns boolean that http code is valid (in the supported list)sanitizeException()
method Returns valid exception info for __construct()
All versions of http-exception with dependencies
PHP Build Version
Package Version
The package boltics/http-exception contains the following files
Loading the files please wait ....