0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-05-17 11:42:43 +00:00
nextcloud_server/lib/public/Encryption/Exceptions/GenericEncryptionException.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
742 B
PHP
Raw Normal View History

2015-02-24 13:05:19 -05:00
<?php
/**
* 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;
use OCP\HintException;
2015-02-24 13:05:19 -05:00
/**
* Class GenericEncryptionException
*
* @since 8.1.0
*/
class GenericEncryptionException extends HintException {
2015-04-09 14:06:55 +02:00
/**
* @param string $message
* @param string $hint
2015-04-09 14:06:55 +02:00
* @param int $code
* @param \Exception|null $previous
* @since 8.1.0
2015-04-09 14:06:55 +02: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';
}
parent::__construct($message, $hint, $code, $previous);
2015-04-01 16:36:08 +02:00
}
2015-02-24 13:05:19 -05:00
}