2015-02-24 13:05:19 -05:00
|
|
|
<?php
|
2024-05-23 09:26:56 +02:00
|
|
|
|
2015-04-07 17:02:49 +02:00
|
|
|
/**
|
2024-05-23 09:26:56 +02: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 16:36:08 +02:00
|
|
|
namespace OCP\Encryption\Exceptions;
|
2020-04-09 11:48:10 +02:00
|
|
|
|
2021-06-29 19:20:33 -04:00
|
|
|
use OCP\HintException;
|
2015-02-24 13:05:19 -05:00
|
|
|
|
2015-04-16 17:00:08 +02:00
|
|
|
/**
|
|
|
|
* Class GenericEncryptionException
|
|
|
|
*
|
|
|
|
* @since 8.1.0
|
|
|
|
*/
|
2015-05-27 10:37:12 +02:00
|
|
|
class GenericEncryptionException extends HintException {
|
2015-04-09 14:06:55 +02:00
|
|
|
/**
|
|
|
|
* @param string $message
|
2015-05-27 10:37:12 +02:00
|
|
|
* @param string $hint
|
2015-04-09 14:06:55 +02:00
|
|
|
* @param int $code
|
2017-07-19 19:44:10 +02:00
|
|
|
* @param \Exception|null $previous
|
2015-04-16 17:00:08 +02:00
|
|
|
* @since 8.1.0
|
2015-04-09 14:06:55 +02:00
|
|
|
*/
|
2024-03-28 16:13:19 +01:00
|
|
|
public function __construct($message = '', $hint = '', $code = 0, ?\Exception $previous = null) {
|
2015-04-01 16:36:08 +02:00
|
|
|
if (empty($message)) {
|
|
|
|
$message = 'Unspecified encryption exception';
|
|
|
|
}
|
2015-05-27 10:37:12 +02:00
|
|
|
parent::__construct($message, $hint, $code, $previous);
|
2015-04-01 16:36:08 +02:00
|
|
|
}
|
2015-02-24 13:05:19 -05:00
|
|
|
}
|