]>
Commit | Line | Data |
---|---|---|
6c50a6cc A |
1 | <?php |
2 | ||
3 | declare(strict_types=1); | |
4 | ||
5 | namespace Shaarli\Front\Exception; | |
6 | ||
7 | use Throwable; | |
8 | ||
9 | /** | |
10 | * Class ShaarliException | |
11 | * | |
ef00f9d2 | 12 | * Exception class used to defined any custom exception thrown during front rendering. |
6c50a6cc A |
13 | * |
14 | * @package Front\Exception | |
15 | */ | |
ef00f9d2 | 16 | class ShaarliFrontException extends \Exception |
6c50a6cc A |
17 | { |
18 | /** Override parent constructor to force $message and $httpCode parameters to be set. */ | |
19 | public function __construct(string $message, int $httpCode, Throwable $previous = null) | |
20 | { | |
21 | parent::__construct($message, $httpCode, $previous); | |
22 | } | |
23 | } |