ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\HTTP\HttpException Interface Reference

An exception representing a HTTP error. More...

+ Inheritance diagram for Sabre\HTTP\HttpException:
+ Collaboration diagram for Sabre\HTTP\HttpException:

Public Member Functions

 getHttpStatus ()
 The http status code for the error. More...
 

Detailed Description

An exception representing a HTTP error.

This can be used as a generic exception in your application, if you'd like to map HTTP errors to exceptions.

If you'd like to use this, create a new exception class, extending Exception and implementing this interface.

Author
Evert Pot (http://evertpot.com/) http://sabre.io/license/ Modified BSD License

Definition at line 18 of file HttpException.php.

Member Function Documentation

◆ getHttpStatus()

Sabre\HTTP\HttpException::getHttpStatus ( )

The http status code for the error.

This may either be just the number, or a number and a human-readable message, separated by a space.

Returns
string|null

Implemented in Sabre\HTTP\ClientHttpException.


The documentation for this interface was generated from the following file: