PHP 클래스 Zend\Expressive\WhoopsErrorHandler

Extends from TemplatedErrorHandler in order to provide templated error and 404 pages; for exceptions, it delegates to Whoops to provide a user-friendly interface for navigating an exception stack trace.
또한 보기: http://filp.github.io/whoops/
상속: extends TemplatedErrorHandler
파일 보기 프로젝트 열기: zendframework/zend-expressive

공개 메소드들

메소드 설명
__construct ( Whoops\Run $whoops, PrettyPageHandler $whoopsHandler = null, Zend\Expressive\Template\TemplateRendererInterface $renderer = null, null | string $template404 = 'error/404', null | string $templateError = 'error/error', Psr\Http\Message\ResponseInterface $originalResponse = null )

보호된 메소드들

메소드 설명
handleException ( Throwable $exception, Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response ) : Psr\Http\Message\ResponseInterface Handle an exception.

비공개 메소드들

메소드 설명
prepareWhoopsHandler ( Psr\Http\Message\RequestInterface $request, PrettyPageHandler $handler ) Prepare the Whoops page handler with a table displaying request information

메소드 상세

__construct() 공개 메소드

public __construct ( Whoops\Run $whoops, PrettyPageHandler $whoopsHandler = null, Zend\Expressive\Template\TemplateRendererInterface $renderer = null, null | string $template404 = 'error/404', null | string $templateError = 'error/error', Psr\Http\Message\ResponseInterface $originalResponse = null )
$whoops Whoops\Run
$whoopsHandler Whoops\Handler\PrettyPageHandler
$renderer Zend\Expressive\Template\TemplateRendererInterface
$template404 null | string
$templateError null | string
$originalResponse Psr\Http\Message\ResponseInterface

handleException() 보호된 메소드

Calls on prepareWhoopsHandler() to inject additional data tables into the generated payload, and then injects the response with the result of whoops handling the exception.
protected handleException ( Throwable $exception, Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response ) : Psr\Http\Message\ResponseInterface
$exception Throwable
$request Psr\Http\Message\RequestInterface
$response Psr\Http\Message\ResponseInterface
리턴 Psr\Http\Message\ResponseInterface