X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/c35080d6cef5b5600cb4f93ca2fd25d0f31a4cd2..refs/pull/5280/head:/app/Exceptions/HttpFetchException.php diff --git a/app/Exceptions/HttpFetchException.php b/app/Exceptions/HttpFetchException.php index c445896c0..4ad45d92a 100644 --- a/app/Exceptions/HttpFetchException.php +++ b/app/Exceptions/HttpFetchException.php @@ -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 +{ }