10 #ifndef _L1_ERROR_MANAGER_H
11 #define _L1_ERROR_MANAGER_H
16 class L1Exception :
public std::exception {
18 virtual const char* what()
const throw() {
19 return "General exception in the L1 API";
23 class L1AlreadyOpenException :
public L1Exception {
25 virtual const char* what()
const throw() {
26 return "SECube already opened";
30 class L1OutOfBoundsException :
public L1Exception {
32 virtual const char* what()
const throw() {
33 return "Pointing outside the vector!";
37 class L1TXRXException :
public L1Exception {
39 virtual const char* what()
const throw() {
40 return "Error while transmitting data!";
44 class L1PayloadDecryptionException :
public L1Exception {
46 virtual const char* what()
const throw() {
47 return "Error In the Payload Decryption!";
51 class L1CommunicationError :
public L1Exception {
53 virtual const char* what()
const throw() {
54 return "Error In the communication!";
58 class L1LoginException :
public L1Exception {
60 virtual const char* what()
const throw() {
61 return "Error In the Login!";
65 class L1CryptoSetTimeException :
public L1Exception {
67 virtual const char* what()
const throw() {
68 return "Error setting the crypto time!";
72 class L1CryptoInitException :
public L1Exception {
74 virtual const char* what()
const throw() {
75 return "Error initializing the crypto session!";
79 class L1CryptoUpdateException :
public L1Exception {
81 virtual const char* what()
const throw() {
82 return "Error updating the crypto session!";
86 class L1LogoutException :
public L1Exception {
88 virtual const char* what()
const throw() {
89 return "Error logging out!";
93 class L1EncryptException :
public L1Exception {
95 virtual const char* what()
const throw() {
96 return "Error while encrypting!";
100 class L1DecryptException :
public L1Exception {
102 virtual const char* what()
const throw() {
103 return "Error while decrypting!";
107 class L1DigestException :
public L1Exception {
109 virtual const char* what()
const throw() {
110 return "Error while digesting!";
114 class L1GetAlgorithmsException :
public L1Exception {
116 virtual const char* what()
const throw() {
117 return "Error while getting algorithms!";
121 class L1ConfigException :
public L1Exception {
123 virtual const char* what()
const throw() {
124 return "Error while configuring L1!";
128 class L1KeyEditException :
public L1Exception {
130 virtual const char* what()
const throw() {
131 return "Error while editing the key!";
135 class L1KeyListException :
public L1Exception {
137 virtual const char* what()
const throw() {
138 return "Error while listing the keys!";
142 class L1FindKeyException :
public L1Exception {
144 virtual const char* what()
const throw() {
145 return "Error while finding the key!";
149 class L1SelectDeviceException :
public L1Exception {
151 virtual const char* what()
const throw() {
152 return "Error while changing the device!";
156 class L1GroupEditException :
public L1Exception {
158 virtual const char* what()
const throw() {
159 return "Error while editing the group!";