Nextcloud-App/lib/Exceptions/TicketNotFoundException.php
Ben 61ba02ccd9
Fix finding ticket by id with user
Add findTicket by id only.
2021-10-10 19:01:00 +02:00

15 lines
278 B
PHP

<?php
namespace OCA\UPschooling\Exceptions;
use OC\OCS\Exception;
use OC\OCS\Result;
class TicketNotFoundException extends Exception
{
public function __construct($ticketId)
{
parent::__construct(new Result(null, 404, 'Ticket with id ' . $ticketId . ' not found'));
}
}