]> BookStack Code Mirror - bookstack/blobdiff - app/Exceptions/ApiAuthException.php
Extend /users API endpoint
[bookstack] / app / Exceptions / ApiAuthException.php
index 0851dfa4afdf8265d9ad69c962ff3d3d2701a1cb..36ea8be9de5dc8b2bbe3232483b25c3da68ad491 100644 (file)
@@ -2,16 +2,7 @@
 
 namespace BookStack\Exceptions;
 
-use Exception;
-
-class ApiAuthException extends Exception
+class ApiAuthException extends UnauthorizedException
 {
 
-    /**
-     * ApiAuthException constructor.
-     */
-    public function __construct($message, $code = 401)
-    {
-        parent::__construct($message, $code);
-    }
-}
\ No newline at end of file
+}