MDA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups
MDAT_Exceptions.hpp
1 /*
2 // * My_IO_Exception.h
3  *
4  * Created on: Feb 23, 2012
5  * Author: Carsten Kemena
6  *
7  * This file is part of MDAT.
8  *
9  * MDAT is free software: you can redistribute it and/or modify
10  * it under the terms of the GNU Lesser General Public License as published by
11  * the Free Software Foundation, either version 3 of the License, or
12  * (at your option) any later version.
13  *
14  * MDAT is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public License
20  * along with MDAT. If not, see <http://www.gnu.org/licenses/>.
21  *
22  */
23 
24 
25 #include <stdexcept>
26 
27 #ifndef MY_IO_EXCEPTION_H_
28 #define MY_IO_EXCEPTION_H_
29 
30 
34 class MDAT_IO_Exception : public std::runtime_error
35 {
36 public:
41  MDAT_IO_Exception(const char *message) : std::runtime_error(message)
42  {}
43 
44  MDAT_IO_Exception(const MDAT_IO_Exception&) = default;
46  virtual ~MDAT_IO_Exception() noexcept = default;
47 };
48 
49 
53 class Alignment_Exception : public std::runtime_error
54 {
55 public:
60  Alignment_Exception(const char *message) : std::runtime_error(message)
61  {}
62 
65  virtual ~Alignment_Exception() noexcept = default;
66 };
67 
68 
69 #endif /* MY_IO_EXCEPTION_H_ */