Keyple Card Calypso C++ Library 2.2.2
Reference Terminal Reader API for C++
src
main
CalypsoApduCommandException.h
Go to the documentation of this file.
1
/**************************************************************************************************
2
* Copyright (c) 2022 Calypso Networks Association https://calypsonet.org/ *
3
* *
4
* See the NOTICE file(s) distributed with this work for additional information regarding *
5
* copyright ownership. *
6
* *
7
* This program and the accompanying materials are made available under the terms of the Eclipse *
8
* Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0 *
9
* *
10
* SPDX-License-Identifier: EPL-2.0 *
11
**************************************************************************************************/
12
13
#pragma once
14
15
/* Keyple Core Utils */
16
#include "Exception.h"
17
18
/* Keyple Card Calypso */
19
#include "
CardCommand.h
"
20
21
namespace
keyple
{
22
namespace
card {
23
namespace
calypso {
24
25
using namespace
keyple::core::util::cpp::exception;
26
33
class
CalypsoApduCommandException
:
public
Exception {
34
public
:
42
const
CardCommand
&
getCommand
()
const
43
{
44
return
mCommand;
45
}
46
54
const
std::shared_ptr<int>
getStatusWord
()
const
55
{
56
return
mStatusWord;
57
}
58
68
CalypsoApduCommandException
(
const
std::string& message,
69
const
CardCommand
& command,
70
const
std::shared_ptr<int> statusWord)
71
: Exception(message), mCommand(command), mStatusWord(statusWord) {}
72
73
private
:
77
const
CardCommand
& mCommand;
78
82
const
std::shared_ptr<int> mStatusWord;
83
};
84
85
}
86
}
87
}
CardCommand.h
keyple::card::calypso::CalypsoApduCommandException
Definition:
CalypsoApduCommandException.h:33
keyple::card::calypso::CalypsoApduCommandException::getStatusWord
const std::shared_ptr< int > getStatusWord() const
Definition:
CalypsoApduCommandException.h:54
keyple::card::calypso::CalypsoApduCommandException::getCommand
const CardCommand & getCommand() const
Definition:
CalypsoApduCommandException.h:42
keyple::card::calypso::CalypsoApduCommandException::CalypsoApduCommandException
CalypsoApduCommandException(const std::string &message, const CardCommand &command, const std::shared_ptr< int > statusWord)
Definition:
CalypsoApduCommandException.h:68
keyple::card::calypso::CardCommand
Definition:
CardCommand.h:25
keyple
Definition:
AbstractApduCommand.cpp:20
Generated by
1.9.2