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\Call\Exception;
13 use Behat\Testwork\Call\Call;
17 * Represents exceptions thrown during call handling phase.
19 * @author Konstantin Kudryashov <ever.zet@gmail.com>
21 final class CallHandlingException extends RuntimeException implements CallException
29 * Initializes exception.
31 * @param string $message
32 * @param Call $callable
34 public function __construct($message, Call $callable)
36 $this->call = $callable;
38 parent::__construct($message);
42 * Returns call that caused exception.
46 public function getCall()