ErrorController
extends AbstractController
in package
Custom error controller.
Builds a detailed incident message (file, line, code, class) intended for technical SMS alerting, then renders the error template matching the HTTP code.
Table of Contents
Methods
- show() : Response
- Renders the error page matching the HTTP code of the exception.
Methods
show()
Renders the error page matching the HTTP code of the exception.
public
show(FlattenException $exception, SmsService $smsService) : Response
Parameters
- $exception : FlattenException
-
Flattened exception provided by the kernel.
- $smsService : SmsService
-
SMS sending service for the technical alert.
Return values
Response —The error template (error{code}.html.twig).