PluginProbe
Depicter — Popup & Slider Builder / trunk
Depicter — Popup & Slider Builder vtrunk
4.8.1 trunk 1.0.0 1.1.0 1.1.2 1.1.4 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.5 1.3.8 1.5.0 1.5.1 1.5.2 1.5.5 1.6.0 1.6.1 1.6.2 1.7.0 All 76 releases
depicter / vendor / averta / wpemerge / src / Exceptions / ErrorHandlerInterface.php

ErrorHandlerInterface.php in Depicter — Popup & Slider Builder trunk, at vendor/averta/wpemerge/src/Exceptions/ErrorHandlerInterface.php

40 lines 928 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package WPEmerge
4 * @author Atanas Angelov <hi@atanas.dev>
5 * @copyright 2017-2019 Atanas Angelov
6 * @license https://www.gnu.org/licenses/gpl-2.0.html GPL-2.0
7 * @link https://wpemerge.com/
8 */
9
10 namespace WPEmerge\Exceptions;
11
12 use Exception as PhpException;
13 use Psr\Http\Message\ResponseInterface;
14 use WPEmerge\Requests\RequestInterface;
15
16 interface ErrorHandlerInterface {
17 /**
18 * Register any necessary error, exception and shutdown handlers.
19 *
20 * @return void
21 */
22 public function register();
23
24 /**
25 * Unregister any registered error, exception and shutdown handlers.
26 *
27 * @return void
28 */
29 public function unregister();
30
31 /**
32 * Get a response representing the specified exception.
33 *
34 * @param RequestInterface $request
35 * @param PhpException $exception
36 * @return ResponseInterface
37 */
38 public function getResponse( RequestInterface $request, PhpException $exception );
39 }
40