FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\UI\Api\Exceptions\HttpErrorException Class Reference
Inheritance diagram for Fossology\UI\Api\Exceptions\HttpErrorException:
Inheritance graph
Collaboration diagram for Fossology\UI\Api\Exceptions\HttpErrorException:
Collaboration graph

Public Member Functions

 __construct (string $message, int $code, ?Throwable $previous=null)
 
 getRequest ()
 
 setHeaders (array $headers)
 
 getHeaders ()
 

Protected Attributes

ServerRequestInterface $request
 
array $headers = []
 

Detailed Description

Base exception class for HTTP error status in API.

Definition at line 18 of file HttpErrorException.php.

Member Function Documentation

◆ getHeaders()

Fossology\UI\Api\Exceptions\HttpErrorException::getHeaders ( )
Returns
array

Definition at line 58 of file HttpErrorException.php.

◆ getRequest()

Fossology\UI\Api\Exceptions\HttpErrorException::getRequest ( )
Returns
ServerRequestInterface

Definition at line 40 of file HttpErrorException.php.

◆ setHeaders()

Fossology\UI\Api\Exceptions\HttpErrorException::setHeaders ( array  $headers)
Parameters
array$headers
Returns
HttpErrorException

Definition at line 49 of file HttpErrorException.php.

Member Data Documentation

◆ $headers

array Fossology\UI\Api\Exceptions\HttpErrorException::$headers = []
protected

HTTP headers to be sent with the error response

Definition at line 29 of file HttpErrorException.php.

◆ $request

ServerRequestInterface Fossology\UI\Api\Exceptions\HttpErrorException::$request
protected

HTTP Slim Request

Definition at line 24 of file HttpErrorException.php.


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