2021-10-10 17:01:00 +00:00
|
|
|
<?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
|
2021-10-10 17:01:00 +00:00
|
|
|
|
|
|
|
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)
|
2021-10-10 17:01:00 +00:00
|
|
|
{
|
|
|
|
parent::__construct(new Result(null, 404, 'Ticket with id ' . $ticketId . ' not found'));
|
|
|
|
}
|
|
|
|
}
|