blob: e97d9939abd2748cc5312f0f75375f5479f40855 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
//
// Created by sz on 09.08.16.
//
#ifndef LIBNITROKEY_INVALIDSLOTEXCEPTION_H
#define LIBNITROKEY_INVALIDSLOTEXCEPTION_H
#include <cstdint>
#include <string>
#include "LibraryException.h"
class InvalidSlotException : public LibraryException {
public:
virtual uint8_t exception_id() override {
return 201;
}
public:
uint8_t slot_selected;
InvalidSlotException(uint8_t slot_selected) : slot_selected(slot_selected) {}
virtual const char *what() const throw() override {
return "Wrong slot selected";
}
};
#endif //LIBNITROKEY_INVALIDSLOTEXCEPTION_H
|