Keypop Calypso Crypto Legacy SAM C++ API 0.6.0
Reference Calypso Crypto Legacy SAM API for C++
SamIOException.hpp
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (c) 2025 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 *
6 * https://opensource.org/licenses/MIT. *
7 * *
8 * SPDX-License-Identifier: MIT *
9 ******************************************************************************/
10
11#pragma once
12
13#include <memory>
14#include <stdexcept>
15#include <string>
16
17namespace keypop {
18namespace calypso {
19namespace crypto {
20namespace legacysam {
21namespace transaction {
22
29class SamIOException final : public std::runtime_error {
30public:
35 explicit SamIOException(const std::string& message)
36 : std::runtime_error(message) {
37 }
38
47 const std::string& message, const std::shared_ptr<std::exception> cause)
48 : std::runtime_error(message) {
49 (void)cause;
50 }
51};
52
53} /* namespace transaction */
54} /* namespace legacysam */
55} /* namespace crypto */
56} /* namespace calypso */
57} /* namespace keypop */
SamIOException(const std::string &message, const std::shared_ptr< std::exception > cause)