1
0

AuthenticationFailedException.php 666 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCP\Federation\Exceptions;
  7. use OCP\HintException;
  8. /**
  9. * Class AuthenticationFailedException
  10. *
  11. *
  12. * @since 14.0.0
  13. */
  14. class AuthenticationFailedException extends HintException {
  15. /**
  16. * BadRequestException constructor.
  17. *
  18. * @since 14.0.0
  19. *
  20. */
  21. public function __construct() {
  22. $l = \OCP\Util::getL10N('federation');
  23. $message = 'Authentication failed, wrong token or provider ID given';
  24. $hint = $l->t('Authentication failed, wrong token or provider ID given');
  25. parent::__construct($message, $hint);
  26. }
  27. }