Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Testwork / Call / Handler / ExceptionHandler.php
1 <?php
2
3 /*
4  * This file is part of the Behat Testwork.
5  * (c) Konstantin Kudryashov <ever.zet@gmail.com>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 namespace Behat\Testwork\Call\Handler;
12
13 /**
14  * Handles exceptions.
15  *
16  * @see CallCenter
17  *
18  * @author Konstantin Kudryashov <ever.zet@gmail.com>
19  */
20 interface ExceptionHandler
21 {
22     /**
23      * Checks if handler supports exception.
24      *
25      * @param \Throwable $exception
26      *
27      * @return bool
28      */
29     public function supportsException($exception);
30
31     /**
32      * Handles exception and returns new one if necessary.
33      *
34      * @param \Throwable $exception
35      *
36      * @return \Throwable
37      */
38     public function handleException($exception);
39 }