Elgg  Version master
Public Member Functions | Protected Attributes | List of all members
Elgg\Exceptions\HttpException Class Reference

Generic HTTP exception. More...

Inheritance diagram for Elgg\Exceptions\HttpException:
Elgg\Exceptions\Exception Elgg\Exceptions\ExceptionInterface Elgg\Exceptions\Http\BadRequestException Elgg\Exceptions\Http\CsrfException Elgg\Exceptions\Http\EntityNotFoundException Elgg\Exceptions\Http\EntityPermissionsException Elgg\Exceptions\Http\Gatekeeper\GroupGatekeeperException Elgg\Exceptions\Http\GatekeeperException Elgg\Exceptions\Http\PageNotFoundException Elgg\Exceptions\Http\ValidationException Elgg\Exceptions\LoginException

Public Member Functions

 setParams (array $params=[])
 Set params to provide context about the exception. More...
 
 getParams ()
 Retrieve exception parameters. More...
 
 getParam ($name)
 Get a parameter value. More...
 
 setRedirectUrl ($url)
 Set preferred redirect URL If set, a redirect response will be issued. More...
 
 getRedirectUrl ()
 Get preferred redirect URL. More...
 

Protected Attributes

 $params = []
 
 $url
 

Detailed Description

Generic HTTP exception.

Since
4.0

Definition at line 10 of file HttpException.php.

Member Function Documentation

Elgg\Exceptions\HttpException::getParam (   $name)

Get a parameter value.

Parameters
string$nameParameter name
Returns
mixed|null

Definition at line 46 of file HttpException.php.

Elgg\Exceptions\HttpException::getParams ( )

Retrieve exception parameters.

Returns
array

Definition at line 37 of file HttpException.php.

Elgg\Exceptions\HttpException::getRedirectUrl ( )

Get preferred redirect URL.

Returns
string

Definition at line 65 of file HttpException.php.

Elgg\Exceptions\HttpException::setParams ( array  $params = [])

Set params to provide context about the exception.

Parameters
array$paramsPayload
Returns
void

Definition at line 29 of file HttpException.php.

Elgg\Exceptions\HttpException::setRedirectUrl (   $url)

Set preferred redirect URL If set, a redirect response will be issued.

Parameters
string$urlURL
Returns
void

Definition at line 57 of file HttpException.php.

Member Data Documentation

Elgg\Exceptions\HttpException::$params = []
protected

Definition at line 15 of file HttpException.php.

Elgg\Exceptions\HttpException::$url
protected

Definition at line 20 of file HttpException.php.


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