Keypop Calypso Crypto Asymmetric C++ API 0.2.0
Reference Calypso Crypto Asymmetric API for C++
CertificateValidationException.hpp
Go to the documentation of this file.
1/**************************************************************************************************
2 * Copyright (c) 2024 Calypso Networks Association https://calypsonet.org/ *
3 * *
4 * This program and the accompanying materials are made available under the *
5 * terms of the MIT License which is available at https://opensource.org/licenses/MIT. *
6 * *
7 * SPDX-License-Identifier: MIT *
8 **************************************************************************************************/
9
10#pragma once
11
12#include <memory>
13#include <stdexcept>
14#include <string>
15
16namespace keypop {
17namespace calypso {
18namespace crypto {
19namespace asymmetric {
20namespace certificate {
21
30class CertificateValidationException : public std::exception {
31public:
36 explicit CertificateValidationException(const std::string& message)
37 : std::exception() {
38 (void)message;
39 }
40
49 const std::string& message, const std::shared_ptr<std::exception> cause)
50 : std::exception(*cause) {
51 (void)message;
52 }
53};
54
55} /* namespace certificate */
56} /* namespace asymmetric */
57} /* namespace crypto */
58} /* namespace calypso */
59} /* namespace keypop */
CertificateValidationException(const std::string &message, const std::shared_ptr< std::exception > cause)