We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d64d1c6 commit a9fc1b6Copy full SHA for a9fc1b6
2 files changed
composer.json
@@ -1,5 +1,8 @@
1
{
2
"autoload": {
3
+ "files": [
4
+ "src/Exceptions.inc.php"
5
+ ],
6
"psr-4": {
7
"Pdsinterop\\Solid\\Auth\\": "src/"
8
}
src/Exceptions.inc.php
@@ -0,0 +1,22 @@
+<?php
+
+namespace Pdsinterop\Solid\Auth\Exception;
+abstract class Exception extends \Exception implements \JsonSerializable
+{
+ final public function jsonSerialize()
+ {
9
+ return [
10
+ 'code' => $this->getCode(),
11
+ 'message' => $this->getMessage(),
12
+ 'name' => static::class,
13
+ // Development environment only
14
+ //'file' => $this->getFile(),
15
+ //'line' => $this->getLine(),
16
+ //'trace' => $this->getTrace(),
17
+ ];
18
+ }
19
+}
20
21
22
+class LogicException extends Exception {}
0 commit comments