1: <?php
2: /**
3: * This file is part of the Autarky package.
4: *
5: * (c) Andreas Lutro <anlutro@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 Autarky\Errors;
12:
13: use Exception;
14:
15: /**
16: * Class that can handle exceptions.
17: */
18: interface ErrorHandlerInterface
19: {
20: /**
21: * Handle an exception.
22: *
23: * @param \Exception $exception
24: *
25: * @return \Symfony\Component\HttpFoundation\Response
26: */
27: public function handle(Exception $exception);
28: }
29: