4 * This file is part of the Behat Testwork.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\Testwork\Exception\Stringer;
13 use Behat\Testwork\Exception\ExceptionPresenter;
17 * Finds a best way to present as a string particular.
19 * @see ExceptionPresenter
21 * @author Konstantin Kudryashov <ever.zet@gmail.com>
23 interface ExceptionStringer
26 * Checks if stringer supports provided exception.
28 * @param Exception $exception
32 public function supportsException(Exception $exception);
35 * Strings provided exception.
37 * @param Exception $exception
38 * @param integer $verbosity
42 public function stringException(Exception $exception, $verbosity);