openETCS
case study for the European Train Control System developed for the authors dissertation
Public Member Functions | Private Attributes | List of all members
oETCS::DF::Error::CException Class Reference

general exception type for the domain framework More...

#include <ExceptionTypes.h>

Inheritance diagram for oETCS::DF::Error::CException:
Inheritance graph
Collaboration diagram for oETCS::DF::Error::CException:
Collaboration graph

Public Member Functions

 CException () throw ()
 default constructor
 CException (const ::std::string &Message) throw ()
 general constructor
::std::string GetMessage () const throw ()
 gets optional error message
virtual const char * what () const throw ()
 gets exeption message
 ~CException () throw ()
 destructor

Private Attributes

::std::string m_Message
 optional error message

Detailed Description

general exception type for the domain framework

Definition at line 46 of file oETCS/DF/Error/ExceptionTypes.h.

Constructor & Destructor Documentation

oETCS::DF::Error::CException::CException ( ) throw ()

default constructor

Definition at line 35 of file oETCS/DF/Error/ExceptionTypes.cpp.

oETCS::DF::Error::CException::CException ( const ::std::string &  Message) throw ()

general constructor

Parameters
[in]Messageexception message

Definition at line 46 of file oETCS/DF/Error/ExceptionTypes.cpp.

oETCS::DF::Error::CException::~CException ( ) throw ()

destructor

Definition at line 58 of file oETCS/DF/Error/ExceptionTypes.cpp.

Member Function Documentation

std::string oETCS::DF::Error::CException::GetMessage ( ) const throw ()

gets optional error message

Returns
error message

Definition at line 69 of file oETCS/DF/Error/ExceptionTypes.cpp.

References m_Message.

const char * oETCS::DF::Error::CException::what ( ) const throw ()
virtual

gets exeption message

Gets the exeption message, implemented for the base type std::exception.

Definition at line 77 of file oETCS/DF/Error/ExceptionTypes.cpp.

References m_Message.

Member Data Documentation

::std::string oETCS::DF::Error::CException::m_Message
private

optional error message

Definition at line 97 of file oETCS/DF/Error/ExceptionTypes.h.

Referenced by GetMessage(), and what().


The documentation for this class was generated from the following files:

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