Property | Type | Description | |
---|---|---|---|
$instance | The singleton instance. |
Method | Description | |
---|---|---|
fromArray ( array $error ) : AppserverIo\Appserver\ServletEngine\Utils\ErrorInterface | Create's a new error instance with the values from the passed array. | |
fromException ( Exception $e ) : AppserverIo\Appserver\ServletEngine\Utils\ErrorInterface | Create's a new error instance from the passed exception. | |
handleErrors ( |
This method finally handles all PHP and user errors as well as the exceptions that have been thrown through the servlet processing. | |
mapErrorCode ( AppserverIo\Appserver\ServletEngine\Utils\ErrorInterface $error ) : string | Return's the a human readable error representation for the passed error instance. | |
mapLogLevel ( AppserverIo\Appserver\ServletEngine\Utils\ErrorInterface $error ) : string | Return's the log level for the passed error instance. | |
prepareMessage ( AppserverIo\Appserver\ServletEngine\Utils\ErrorInterface $error ) : string | Prepare's the error message for logging/rendering purposes. | |
singleton ( ) : |
Create's and return's the singleton instance. |
public fromException ( Exception $e ) : AppserverIo\Appserver\ServletEngine\Utils\ErrorInterface | ||
$e | Exception | The exception to create the error instance from |
return | AppserverIo\Appserver\ServletEngine\Utils\ErrorInterface | The error instance |
public handleErrors ( |
||
$requestHandler | The request handler instance | |
$servletRequest | AppserverIo\Psr\Servlet\Http\HttpServletRequestInterface | The actual request instance |
$servletResponse | AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface | The actual request instance |
return | void |
public mapErrorCode ( AppserverIo\Appserver\ServletEngine\Utils\ErrorInterface $error ) : string | ||
$error | AppserverIo\Appserver\ServletEngine\Utils\ErrorInterface | The error instance |
return | string | The human readable error representation |
public mapLogLevel ( AppserverIo\Appserver\ServletEngine\Utils\ErrorInterface $error ) : string | ||
$error | AppserverIo\Appserver\ServletEngine\Utils\ErrorInterface | The error instance to map the log level for |
return | string |
public prepareMessage ( AppserverIo\Appserver\ServletEngine\Utils\ErrorInterface $error ) : string | ||
$error | AppserverIo\Appserver\ServletEngine\Utils\ErrorInterface | The error instance to create the message from |
return | string | The error message |
public static singleton ( ) : |
||
return | The singleton instance |