115c4f62cSGreg Roach<?php 215c4f62cSGreg Roach 315c4f62cSGreg Roach/** 415c4f62cSGreg Roach * webtrees: online genealogy 515c4f62cSGreg Roach * Copyright (C) 2023 webtrees development team 615c4f62cSGreg Roach * This program is free software: you can redistribute it and/or modify 715c4f62cSGreg Roach * it under the terms of the GNU General Public License as published by 815c4f62cSGreg Roach * the Free Software Foundation, either version 3 of the License, or 915c4f62cSGreg Roach * (at your option) any later version. 1015c4f62cSGreg Roach * This program is distributed in the hope that it will be useful, 1115c4f62cSGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 1215c4f62cSGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1315c4f62cSGreg Roach * GNU General Public License for more details. 1415c4f62cSGreg Roach * You should have received a copy of the GNU General Public License 1515c4f62cSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>. 1615c4f62cSGreg Roach */ 1715c4f62cSGreg Roach 1815c4f62cSGreg Roachdeclare(strict_types=1); 1915c4f62cSGreg Roach 2015c4f62cSGreg Roachnamespace Fisharebest\Webtrees\Http\Exceptions; 2115c4f62cSGreg Roach 2215c4f62cSGreg Roachuse Fig\Http\Message\StatusCodeInterface; 2315c4f62cSGreg Roachuse Fisharebest\Webtrees\I18N; 2415c4f62cSGreg Roach 2515c4f62cSGreg Roach/** 2615c4f62cSGreg Roach * Application level exceptions. 2715c4f62cSGreg Roach */ 2815c4f62cSGreg Roachclass HttpGoneException extends HttpException 2915c4f62cSGreg Roach{ 3015c4f62cSGreg Roach /** 3115c4f62cSGreg Roach * @param string|null $message 3215c4f62cSGreg Roach */ 33*2c6f1bd5SGreg Roach public function __construct(string|null $message = null) 3415c4f62cSGreg Roach { 3515c4f62cSGreg Roach $message ??= I18N::translate('This page has been deleted.'); 3615c4f62cSGreg Roach 3715c4f62cSGreg Roach parent::__construct($message, StatusCodeInterface::STATUS_GONE); 3815c4f62cSGreg Roach } 3915c4f62cSGreg Roach} 40