ApplicationException Class Reference
Detailed Description
ApplicationException signals a general application exception.
Definition at line 22 of file ApplicationException.php.
Inheritance diagram for ApplicationException:
Public Member Functions | |
__construct (Request $request, Response $response, ApplicationError $error) | |
getRequest () | |
getResponse () | |
getError () | |
__toString () | |
Constructor & Destructor Documentation
◆ __construct()
__construct | ( | Request | $request, |
Response | $response, | ||
ApplicationError | $error | ||
) |
Constructor.
- Parameters
-
$request The current request $response The current response $error An ApplicationError instance
Definition at line 34 of file ApplicationException.php.
Member Function Documentation
◆ getRequest()
getRequest | ( | ) |
Get the current request.
- Returns
- The Request instance
Definition at line 51 of file ApplicationException.php.
◆ getResponse()
getResponse | ( | ) |
Get the current response.
- Returns
- The Response instance
Definition at line 59 of file ApplicationException.php.
◆ getError()
getError | ( | ) |
Get the error.
- Returns
- The ApplicationError instance
Definition at line 67 of file ApplicationException.php.
◆ __toString()
__toString | ( | ) |
Get a string representation of the exception.
- Returns
- String
Definition at line 75 of file ApplicationException.php.