Handles the various errors thrown by services / dispatchers, such as
instance not defined, method does not exist, etc.
__construct(string $message,string $service = '',string $method = '')
The exception message
The service alias being accessed.
The method alias being accessed.
Process the exception, log and display it as necessary
Report, and add necessary logging
Display the error as necessary, depending on the origin of request (CLI,
web browser, AJAX, etc.)
Render JSON error
Render with no .tpl file found