summaryrefslogtreecommitdiff
path: root/src/Exceptions/Handlers/HandlerInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Exceptions/Handlers/HandlerInterface.php')
-rw-r--r--src/Exceptions/Handlers/HandlerInterface.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Exceptions/Handlers/HandlerInterface.php b/src/Exceptions/Handlers/HandlerInterface.php
new file mode 100644
index 00000000..9de33e1f
--- /dev/null
+++ b/src/Exceptions/Handlers/HandlerInterface.php
@@ -0,0 +1,21 @@
+<?php
+
+namespace Engelsystem\Exceptions\Handlers;
+
+use Engelsystem\Http\Request;
+use Throwable;
+
+interface HandlerInterface
+{
+ /**
+ * @param Request $request
+ * @param Throwable $e
+ */
+ public function render($request, Throwable $e);
+
+ /**
+ * @param Throwable $e
+ * @return
+ */
+ public function report(Throwable $e);
+}