MDA
Main Page
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
src
lib
utils
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
;
45
MDAT_IO_Exception
(
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
63
Alignment_Exception
(
Alignment_Exception
&&) =
default
;
64
Alignment_Exception
(
const
Alignment_Exception
&) =
default
;
65
virtual
~
Alignment_Exception
() noexcept = default;
66
};
67
68
69
#endif
/* MY_IO_EXCEPTION_H_ */
Generated on Tue Nov 19 2013 18:24:38 for MDA by
1.8.3.1