PHP 인터페이스 Tolerance\Operation\ExceptionCatcher\ThrowableCatcherVoter

This is extending ExceptionCatcherVoter for a BC layer. This extension should be removed as soon as the ExceptionCatcherVoter is removed.
저자: Baptiste Clavié ([email protected])
상속: extends Tolerance\Operation\ExceptionCatcher\ExceptionCatcherVoter
파일 보기 프로젝트 열기: sroze/tolerance 0 사용 예제들

공개 메소드들

메소드 설명
shouldCatchThrowable ( Exception | Throwable $throwable ) : boolean Decides if whatever we should catch the given throwable.

메소드 상세

shouldCatchThrowable() 공개 메소드

There is no typehint, because \Throwable isn't available before PHP 7.0, so we need to handle \Exception too.
public shouldCatchThrowable ( Exception | Throwable $throwable ) : boolean
$throwable Exception | Throwable
리턴 boolean