openETCS
case study for the European Train Control System developed for the authors dissertation
oETCS/GEN/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 exception types of the generator namespace file
23  */
24 
25 #include "ExceptionTypes.h"
26 
27 
28 
29 
30 namespace oETCS {
31 
32 namespace GEN {
33 
34 namespace Error {
35 
36 
38 {
39  // Bouml preserved body begin 00096F82
40  // empty constructor
41  // Bouml preserved body end 00096F82
42 
43 } // CException::CException() throw()
44 
45 
46 
47 
48 CException::CException(const ::std::string& Message) throw()
49 :m_Message(Message)
50 {
51  // Bouml preserved body begin 00097002
52  // empty constructor
53  // Bouml preserved body end 00097002
54 
55 } // CException::CException() throw()
56 
57 
58 
59 
61 {
62  // Bouml preserved body begin 00097082
63  // empty desctructor
64  // Bouml preserved body end 00097082
65 
66 } // CException::~CException() throw()
67 
68 
69 
70 
71 ::std::string CException::GetMessage() const throw()
72 {
73  return m_Message;
74 } // ::std::string CException::GetMessage() const throw()
75 
76 
77 
78 
79 const char* CException::what() const throw()
80 {
81  // Bouml preserved body begin 00097182
82  // return message string as char*
83  return m_Message.c_str();
84  // Bouml preserved body end 00097182
85 
86 } // const char* CException::what() const throw()
87 
88 
89 
90 
91  CParameter::CParameter(const ::std::string& Message) throw()
92 :CException(Message)
93 {
94  // Bouml preserved body begin 00097402
95  // Bouml preserved body end 00097402
96 
97 } // CParameter::CParameter() throw()
98 
99 
100 
101 
102  CModel::CModel(const ::std::string& Message) throw()
103 :CException(Message)
104 {
105  // Bouml preserved body begin 00097482
106  // Bouml preserved body end 00097482
107 
108 } // CModel::CModel() throw()
109 
110 
111 
112 
113 
114 
115 } // namespace oETCS::GEN::Error
116 
117 } // namespace oETCS::GEN
118 
119 } // 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/.