bookstack/app/Exceptions/HttpFetchException.php

24 lines
508 B
PHP
Raw Normal View History

2021-06-26 23:23:15 +08:00
<?php
namespace BookStack\Exceptions;
class HttpFetchException extends PrettyException
2019-01-27 18:29:23 +08:00
{
/**
* 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;
}
2019-01-27 18:29:23 +08:00
}