Nextcloud-App/lib/Exceptions/TicketNotFoundException.php

18 lines
407 B
PHP
Raw Normal View History

<?php
2023-10-11 19:55:03 +00:00
declare(strict_types=1);
// SPDX-FileCopyrightText: BVSC e.V. <no@example.com>
// SPDX-License-Identifier: AGPL-3.0-or-later
namespace OCA\UPschooling\Exceptions;
use OC\OCS\Exception;
use OC\OCS\Result;
class TicketNotFoundException extends Exception
{
2023-10-11 19:55:03 +00:00
public function __construct(int $ticketId)
{
parent::__construct(new Result(null, 404, 'Ticket with id ' . $ticketId . ' not found'));
}
}