ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
SlimException.php
Go to the documentation of this file.
1<?php
9namespace Slim\Exception;
10
11use Exception;
14
21class SlimException extends Exception
22{
28 protected $request;
29
35 protected $response;
36
44 {
45 parent::__construct();
46 $this->request = $request;
47 $this->response = $response;
48 }
49
55 public function getRequest()
56 {
57 return $this->request;
58 }
59
65 public function getResponse()
66 {
67 return $this->response;
68 }
69}
An exception for terminatinating execution or to throw for unit testing.
__construct(ServerRequestInterface $request, ResponseInterface $response)
Create new exception.
Representation of an outgoing, server-side response.
Representation of an incoming, server-side HTTP request.
Slim Framework (https://slimframework.com)