aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/front/exceptions/ShaarliException.php
blob: 800bfbec34c619c09eb7d653aca58303758896d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

declare(strict_types=1);

namespace Shaarli\Front\Exception;

use Throwable;

/**
 * Class ShaarliException
 *
 * Abstract exception class used to defined any custom exception thrown during front rendering.
 *
 * @package Front\Exception
 */
abstract class ShaarliException extends \Exception
{
    /** Override parent constructor to force $message and $httpCode parameters to be set. */
    public function __construct(string $message, int $httpCode, Throwable $previous = null)
    {
        parent::__construct($message, $httpCode, $previous);
    }
}