openETCS
case study for the European Train Control System developed for the authors dissertation
DSM/Error/ExceptionTypes.cpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010-2011
3  Johannes Feuser <johannes.feuser@googlemail.com>
4  This file is part of the openETCS library.
5 
6  The openETCS library is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  any later version.
10 
11  The openETCS library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with the openETCS library. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 /*!
21  * \author Johannes Feuser <feuser@uni-bremen.de>
22  * \brief module for all exception classes
23  */
24 
25 #include "ExceptionTypes.h"
26 
27 
28 namespace DSM {
29 
30 namespace Error {
31 
32 
34 {
35  // Bouml preserved body begin 00045602
36  // empty constructor
37  // Bouml preserved body end 00045602
38 
39 } // CException::CException() throw()
40 
41 
42 
43 
44 CException::CException(const ::std::string& Message) throw()
45 :m_Message(Message)
46 {
47  // Bouml preserved body begin 00024982
48  // empty constructor
49  // Bouml preserved body end 00024982
50 
51 } // CException::CException() throw()
52 
53 
54 
55 
57 {
58  // Bouml preserved body begin 00045682
59  // empty desctructor
60  // Bouml preserved body end 00045682
61 
62 } // CException::~CException() throw()
63 
64 
65 
66 
67 ::std::string CException::GetMessage() const throw()
68 {
69  return m_Message;
70 } // ::std::string CException::GetMessage() const throw()
71 
72 
73 
74 
75 const char* CException::what() const throw()
76 {
77  // Bouml preserved body begin 00045582
78  // return message string as char*
79  return m_Message.c_str();
80  // Bouml preserved body end 00045582
81 
82 } // const char* CException::what() const throw()
83 
84 
85 
86 
87 CMath::CMath(const ::std::string& Message) throw()
88 :CException(Message)
89 {
90  // Bouml preserved body begin 0002E482
91  // Bouml preserved body end 0002E482
92 
93 } // CMath::CMath() throw()
94 
95 
96 
97 
98 CMemory::CMemory(const ::std::string& Message) throw()
99 :CException(Message)
100 {
101  // Bouml preserved body begin 0002E502
102  // Bouml preserved body end 0002E502
103 
104 } // CMemory::CMemory() throw()
105 
106 
107 
108 
109 CUnknown::CUnknown(const ::std::string& Message) throw()
110 :CException(Message)
111 {
112  // Bouml preserved body begin 0002E602
113  // Bouml preserved body end 0002E602
114 
115 } // CUnknown::CUnknown() throw()
116 
117 
118 
119 
120 CParser::CParser(const ::std::string& Message) throw()
121 :CException(Message)
122 {
123  // Bouml preserved body begin 0002E582
124  // Bouml preserved body end 0002E582
125 
126 } // CParser::CParser() throw()
127 
128 
129 
130 
131 CParameter::CParameter(const ::std::string& Message) throw()
132 :CException(Message)
133 {
134  // Bouml preserved body begin 0002E402
135  // Bouml preserved body end 0002E402
136 
137 } // CParameter::CParameter() throw()
138 
139 
140 
141 
142 
143 
144 } // namespace DSM::Error
145 
146 } // namespace DSM

Copyright (C) 2010-2012 Johannes Feuser (feuser@uni-bremen.de)
The openETCS library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
The openETCS library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with the openETCS library. If not, see "http://www.gnu.org/licenses/.