mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-09-03 08:42:07 +03:00
Revert some changes to HttpFetchException
This commit is contained in:
@@ -2,22 +2,8 @@
|
||||
|
||||
namespace BookStack\Exceptions;
|
||||
|
||||
class HttpFetchException extends PrettyException
|
||||
use Exception;
|
||||
|
||||
class HttpFetchException extends Exception
|
||||
{
|
||||
/**
|
||||
* 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());
|
||||
}
|
||||
}
|
||||
|
||||
public function getStatusCode(): int
|
||||
{
|
||||
return 500;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user