Vanetza
 
Loading...
Searching...
No Matches
exception.hpp
1#ifndef EXCEPTION_HPP_IY8LEMBQ
2#define EXCEPTION_HPP_IY8LEMBQ
3
4#include <stdexcept>
5
6namespace vanetza
7{
8namespace security
9{
10
11/// thrown when a serialization error occurred
12class serialization_error : public std::runtime_error
13{
14public:
15 using std::runtime_error::runtime_error;
16};
17
18/// thrown when a deserialization error occurred
19class deserialization_error : public std::runtime_error
20{
21public:
22 using std::runtime_error::runtime_error;
23};
24
25} // namespace security
26} // namespace vanetza
27
28#endif /* EXCEPTION_HPP_IY8LEMBQ */
thrown when a deserialization error occurred
Definition: exception.hpp:20
thrown when a serialization error occurred
Definition: exception.hpp:13