2018-05-29 10:21:13 -04:00
|
|
|
<?php
|
2025-06-30 09:04:05 -04:00
|
|
|
|
2018-05-29 10:21:13 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2018-05-29 10:21:13 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Federation\Exceptions;
|
|
|
|
|
|
2021-06-29 19:20:33 -04:00
|
|
|
use OCP\HintException;
|
2018-05-29 10:21:13 -04:00
|
|
|
|
2018-06-07 10:36:26 -04:00
|
|
|
/**
|
|
|
|
|
* Class AuthenticationFailedException
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @since 14.0.0
|
|
|
|
|
*/
|
2018-05-29 10:21:13 -04:00
|
|
|
class AuthenticationFailedException extends HintException {
|
|
|
|
|
/**
|
|
|
|
|
* BadRequestException constructor.
|
|
|
|
|
*
|
2018-06-07 10:36:26 -04:00
|
|
|
* @since 14.0.0
|
|
|
|
|
*
|
2018-05-29 10:21:13 -04:00
|
|
|
*/
|
|
|
|
|
public function __construct() {
|
2023-09-26 04:42:38 -04:00
|
|
|
$l = \OCP\Util::getL10N('federation');
|
2018-05-29 10:21:13 -04:00
|
|
|
$message = 'Authentication failed, wrong token or provider ID given';
|
|
|
|
|
$hint = $l->t('Authentication failed, wrong token or provider ID given');
|
|
|
|
|
parent::__construct($message, $hint);
|
|
|
|
|
}
|
|
|
|
|
}
|