Go\Aop\Support\PointcutBuilder::afterThrowing PHP Method

afterThrowing() public method

Declares the "AfterThrowing" hook for specific pointcut expression
public afterThrowing ( string $pointcutExpression, Closure $advice )
$pointcutExpression string Pointcut, e.g. "within(**)"
$advice Closure Advice to call
    public function afterThrowing($pointcutExpression, Closure $advice)
    {
        $advice = new AfterThrowingInterceptor($advice, 0, $pointcutExpression);
        $this->registerAdviceInContainer($pointcutExpression, $advice);
    }