We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1f46323 + 514a225 commit b090bcaCopy full SHA for b090bca
src/DataExceptionInterface.php
@@ -0,0 +1,13 @@
1
+<?php
2
+
3
4
+namespace HalloVerden\HttpExceptions;
5
6
7
+interface DataExceptionInterface {
8
9
+ /**
10
+ * @return array|null
11
+ */
12
+ public function getData(): ?array;
13
+}
src/Http/HttpException.php
@@ -3,12 +3,14 @@
namespace HalloVerden\HttpExceptions\Http;
+use HalloVerden\HttpExceptions\DataExceptionInterface;
/**
* Class HttpException
*
* @package HalloVerden\HttpExceptions\Http
*/
-class HttpException extends \Symfony\Component\HttpKernel\Exception\HttpException {
+class HttpException extends \Symfony\Component\HttpKernel\Exception\HttpException implements DataExceptionInterface {
14
15
* @var array|null
16
0 commit comments