Download the PHP package majalin/http-exception without Composer
On this page you can find all versions of the php package majalin/http-exception. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download majalin/http-exception
More information about majalin/http-exception
Files in majalin/http-exception
Download majalin/http-exception
More information about majalin/http-exception
Files in majalin/http-exception
Vendor majalin
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 majalin/http-exception contains the following files
Loading the files please wait ....