2015-02-24 13:05:19 -05:00
|
|
|
<?php
|
2024-05-23 03:26:56 -04:00
|
|
|
|
2015-04-07 11:02:49 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2015-02-24 13:05:19 -05:00
|
|
|
*/
|
2015-04-01 10:36:08 -04:00
|
|
|
namespace OCP\Encryption\Exceptions;
|
2020-04-09 05:48:10 -04:00
|
|
|
|
2021-06-29 19:20:33 -04:00
|
|
|
use OCP\HintException;
|
2015-02-24 13:05:19 -05:00
|
|
|
|
2015-04-16 11:00:08 -04:00
|
|
|
/**
|
|
|
|
|
* Class GenericEncryptionException
|
|
|
|
|
*
|
|
|
|
|
* @since 8.1.0
|
|
|
|
|
*/
|
2015-05-27 04:37:12 -04:00
|
|
|
class GenericEncryptionException extends HintException {
|
2015-04-09 08:06:55 -04:00
|
|
|
/**
|
|
|
|
|
* @param string $message
|
2015-05-27 04:37:12 -04:00
|
|
|
* @param string $hint
|
2015-04-09 08:06:55 -04:00
|
|
|
* @param int $code
|
2017-07-19 13:44:10 -04:00
|
|
|
* @param \Exception|null $previous
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 8.1.0
|
2015-04-09 08:06:55 -04:00
|
|
|
*/
|
2024-03-28 11:13:19 -04:00
|
|
|
public function __construct($message = '', $hint = '', $code = 0, ?\Exception $previous = null) {
|
2015-04-01 10:36:08 -04:00
|
|
|
if (empty($message)) {
|
|
|
|
|
$message = 'Unspecified encryption exception';
|
|
|
|
|
}
|
2015-05-27 04:37:12 -04:00
|
|
|
parent::__construct($message, $hint, $code, $previous);
|
2015-04-01 10:36:08 -04:00
|
|
|
}
|
2015-02-24 13:05:19 -05:00
|
|
|
}
|