2020-01-18 17:50:11 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace Shaarli\Front\Exception;
|
|
|
|
|
|
|
|
use Throwable;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class ShaarliException
|
|
|
|
*
|
2020-05-27 13:35:48 +02:00
|
|
|
* Exception class used to defined any custom exception thrown during front rendering.
|
2020-01-18 17:50:11 +01:00
|
|
|
*
|
|
|
|
* @package Front\Exception
|
|
|
|
*/
|
2020-05-27 13:35:48 +02:00
|
|
|
class ShaarliFrontException extends \Exception
|
2020-01-18 17:50:11 +01:00
|
|
|
{
|
|
|
|
/** 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);
|
|
|
|
}
|
|
|
|
}
|