ar-cpp
exceptions.h
Go to the documentation of this file.
1 
8 #ifndef AR_EXCEPTIONS_H
9 #define AR_EXCEPTIONS_H
10 
11 #include <stdexcept>
12 
13 namespace ar {
14 
18 class Error: public std::runtime_error {
19 public:
20  using std::runtime_error::runtime_error;
21 };
22 
26 class InvalidArchiveError: public Error {
27 public:
28  using Error::Error;
29 };
30 
34 class IOError: public Error {
35 public:
36  using Error::Error;
37 };
38 
39 } // namespace ar
40 
41 #endif
Base class for exceptions thrown by the library.
Definition: exceptions.h:18
Exception thrown when the archive is invalid.
Definition: exceptions.h:26
Exception thrown when there is an I/O error.
Definition: exceptions.h:34
The namespace of the library.
Definition: doxygen.h:8