]> BookStack Code Mirror - bookstack/blobdiff - app/Exceptions/HttpFetchException.php
respective book and chapter structure added.
[bookstack] / app / Exceptions / HttpFetchException.php
index c445896c01e13f87b1ad9cd7a7826bccbee6a0ff..4ad45d92a35a8449f35e8c8f8ee8db44ce17f4df 100644 (file)
@@ -2,22 +2,8 @@
 
 namespace BookStack\Exceptions;
 
-class HttpFetchException extends PrettyException
-{
-    /**
-     * Construct exception within BookStack\Uploads\HttpFetcher.
-     */
-    public function __construct(string $message = '', int $code = 0, ?\Throwable $previous = null)
-    {
-        parent::__construct($message, $code, $previous);
-
-        if ($previous) {
-            $this->setDetails($previous->getMessage());
-        }
-    }
+use Exception;
 
-    public function getStatusCode(): int
-    {
-        return 500;
-    }
+class HttpFetchException extends Exception
+{
 }