PHP Interface Tolerance\Operation\ExceptionCatcher\ThrowableCatcherVoter

This is extending ExceptionCatcherVoter for a BC layer. This extension should be removed as soon as the ExceptionCatcherVoter is removed.
Author: Baptiste Clavié ([email protected])
Inheritance: extends Tolerance\Operation\ExceptionCatcher\ExceptionCatcherVoter
Mostrar archivo Open project: sroze/tolerance Interface Usage Examples

Public Methods

Method Description
shouldCatchThrowable ( Exception | Throwable $throwable ) : boolean Decides if whatever we should catch the given throwable.

Method Details

shouldCatchThrowable() public method

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
return boolean