polls/lib/Exceptions/InvalidEmailAddress.php

20 строки
379 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2020 Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Polls\Exceptions;
use OCP\AppFramework\Http;
class InvalidEmailAddress extends Exception {
public function __construct(
string $e = 'Invalid email address',
) {
parent::__construct($e, Http::STATUS_FORBIDDEN);
}
}