LogBook/src/DatabaseError.cpp

Go to the documentation of this file.
00001 //--------------------------------------------------------------------------
00002 // File and Version Information:
00003 //      $Id: $
00004 //
00005 // Description:
00006 //      Class DatabaseError...
00007 //
00008 // Author List:
00009 //      Igor Gaponenko
00010 //
00011 //------------------------------------------------------------------------
00012 
00013 //-----------------------
00014 // This Class's Header --
00015 //-----------------------
00016 
00017 #include "LogBook/DatabaseError.h"
00018 
00019 //-----------------
00020 // C/C++ Headers --
00021 //-----------------
00022 
00023 //-------------------------------
00024 // Collaborating Class Headers --
00025 //-------------------------------
00026 
00027 //-----------------------------------------------------------------------
00028 // Local Macros, Typedefs, Structures, Unions and Forward Declarations --
00029 //-----------------------------------------------------------------------
00030 
00031 //              ----------------------------------------
00032 //              -- Public Function Member Definitions --
00033 //              ----------------------------------------
00034 
00035 namespace LogBook {
00036 
00037 //----------------
00038 // Constructors --
00039 //----------------
00040 
00041 DatabaseError::DatabaseError (const std::string& reason) :
00042     std::exception(),
00043     m_reason("LogBook::DatabaseError: " + reason)
00044 { }
00045 
00046 //--------------
00047 // Destructor --
00048 //--------------
00049 
00050 DatabaseError::~DatabaseError () throw ()
00051 { }
00052 
00053 //-----------
00054 // Methods --
00055 //-----------
00056 
00057 const char*
00058 DatabaseError::what () const throw ()
00059 {
00060     return m_reason.c_str() ;
00061 }
00062 
00063 } // namespace LogBook

Generated on 19 Dec 2016 for PSDMSoftware by  doxygen 1.4.7