ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Slim\Exception\SlimException Class Reference

Stop Exception. More...

+ Inheritance diagram for Slim\Exception\SlimException:
+ Collaboration diagram for Slim\Exception\SlimException:

Public Member Functions

 __construct (ServerRequestInterface $request, ResponseInterface $response)
 Create new exception. More...
 
 getRequest ()
 Get request. More...
 
 getResponse ()
 Get response. More...
 

Protected Attributes

 $request
 
 $response
 

Detailed Description

Stop Exception.

This Exception is thrown when the Slim application needs to abort processing and return control flow to the outer PHP script.

Definition at line 21 of file SlimException.php.

Constructor & Destructor Documentation

◆ __construct()

Slim\Exception\SlimException::__construct ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

Create new exception.

Parameters
ServerRequestInterface$request
ResponseInterface$response

Definition at line 43 of file SlimException.php.

References Slim\Exception\SlimException\$request, and Slim\Exception\SlimException\$response.

44  {
45  parent::__construct();
46  $this->request = $request;
47  $this->response = $response;
48  }

Member Function Documentation

◆ getRequest()

Slim\Exception\SlimException::getRequest ( )

Get request.

Returns
ServerRequestInterface

Definition at line 55 of file SlimException.php.

References Slim\Exception\SlimException\$request.

56  {
57  return $this->request;
58  }

◆ getResponse()

Slim\Exception\SlimException::getResponse ( )

Get response.

Returns
ResponseInterface

Definition at line 65 of file SlimException.php.

References Slim\Exception\SlimException\$response.

66  {
67  return $this->response;
68  }

Field Documentation

◆ $request

Slim\Exception\SlimException::$request
protected

◆ $response

Slim\Exception\SlimException::$response
protected

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