Keypop Storage Card C++ API - 1.2.0
Component of the Keypop C++ API
StorageCardException.hpp
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (c) 2026 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
15namespace keypop {
16namespace storagecard {
17
28public:
33
38
43
48
53
57 virtual ~StorageCardException() = default;
58
66 virtual std::shared_ptr<int> getBlockAddress() const = 0;
67};
68
69} /* namespace storagecard */
70} /* namespace keypop */
Interface for exceptions occurring during the execution of a command on a StorageCard.
StorageCardException & operator=(const StorageCardException &)=default
StorageCardException(StorageCardException &&)=default
virtual std::shared_ptr< int > getBlockAddress() const =0
Returns the address of the block involved in the error, if applicable.
StorageCardException(const StorageCardException &)=default
StorageCardException & operator=(StorageCardException &&)=default