UserFriendlyErrorPageErrorHandlerService
in package
implements
UserFriendlyErrorPageErrorHandlerService
Class UserFriendlyErrorPageErrorHandlerService
Tags
Interfaces, Classes and Traits
- UserFriendlyErrorPageErrorHandlerService
- Interface UserFriendlyErrorPageErrorHandlerService
Table of Contents
- $reader : UnexpectedErrorErrorPageReader
- $url : Url
- __construct() : mixed
- UserFriendlyErrorPageErrorHandlerService constructor.
- isModuleActive() : bool
- Returns active state of this module.
- redirectToUserFriendlyErrorPage() : string
- Sets HTTP header to redirect to the user friendly error page and returns generated error code.
- generateErrorCode() : string
Properties
$reader
private
UnexpectedErrorErrorPageReader
$reader
$url
private
Url
$url
Methods
__construct()
UserFriendlyErrorPageErrorHandlerService constructor.
public
__construct(Url $url, UnexpectedErrorErrorPageReader $reader) : mixed
Parameters
- $url : Url
- $reader : UnexpectedErrorErrorPageReader
Return values
mixed —isModuleActive()
Returns active state of this module.
public
isModuleActive() : bool
Tags
Return values
bool —redirectToUserFriendlyErrorPage()
Sets HTTP header to redirect to the user friendly error page and returns generated error code.
public
redirectToUserFriendlyErrorPage() : string
Tags
Return values
string —generateErrorCode()
private
generateErrorCode() : string