openETCS
case study for the European Train Control System developed for the authors dissertation
oETCS/DF/Error/ExceptionTypes.cpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010-2011
3  Johannes Feuser <feuser@uni-bremen.de>
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 classes as exception types
23  */
24 
25 #include "ExceptionTypes.h"
26 
27 
28 namespace oETCS {
29 
30 namespace DF {
31 
32 namespace Error {
33 
34 
36 {
37  // Bouml preserved body begin 0004E102
38  // empty constructor
39  // Bouml preserved body end 0004E102
40 
41 } // CException::CException() throw()
42 
43 
44 
45 
46 CException::CException(const ::std::string& Message) throw()
47 :m_Message(Message)
48 {
49  // Bouml preserved body begin 0004E182
50  // empty constructor
51  // Bouml preserved body end 0004E182
52 
53 } // CException::CException() throw()
54 
55 
56 
57 
59 {
60  // Bouml preserved body begin 0004E202
61  // empty desctructor
62  // Bouml preserved body end 0004E202
63 
64 } // CException::~CException() throw()
65 
66 
67 
68 
69 ::std::string CException::GetMessage() const throw()
70 {
71  return m_Message;
72 } // ::std::string CException::GetMessage() const throw()
73 
74 
75 
76 
77 const char* CException::what() const throw()
78 {
79  // Bouml preserved body begin 0004E302
80  // return message string as char*
81  return m_Message.c_str();
82  // Bouml preserved body end 0004E302
83 
84 } // const char* CException::what() const throw()
85 
86 
87 
88 
89 CMath::CMath(const std::string& Message) throw()
90 :CException(Message)
91 {
92  // Bouml preserved body begin 0004E382
93  // Bouml preserved body end 0004E382
94 
95 } // CMath::CMath() throw()
96 
97 
98 
99 
100 CInput::CInput(const std::string& Message) throw()
101 :CException(Message)
102 {
103  // Bouml preserved body begin 0006F982
104  // Bouml preserved body end 0006F982
105 
106 } // CInput::CInput() throw()
107 
108 
109 
110 
111 CInternal::CInternal(const std::string& Message) throw()
112 :CException(Message)
113 {
114  // Bouml preserved body begin 0006FB82
115  // Bouml preserved body end 0006FB82
116 
117 } // CInternal::CInternal() throw()
118 
119 
120 
121 
122 CUnkown::CUnkown(const std::string& Message) throw()
123 :CException(Message)
124 {
125  // Bouml preserved body begin 0006FC02
126  // Bouml preserved body end 0006FC02
127 
128 } // CUnkown::CUnkown() throw()
129 
130 
131 
132 
133 
134 
135 } // namespace oETCS::DF::Error
136 
137 } // namespace oETCS::DF
138 
139 } // namespace oETCS

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/.