Changeset 156 in pacpusframework


Ignore:
Timestamp:
Aug 1, 2013, 1:16:38 PM (11 years ago)
Author:
Marek Kurdej
Message:

Added: PacpusException.

Location:
branches/2.0-beta1
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0-beta1/include/Pacpus/kernel/DbiteException.h

    r141 r156  
    66/// @author  Marek Kurdej <firstname.surname@utc.fr>
    77/// @date    Month, 2012
    8 /// @version $Id: DbiteException.h 87 2013-03-27 15:38:14Z morasjul $
     8/// @version $Id: DbiteException.h 117 2013-06-25 11:50:46Z kurdejma $
    99/// @copyright Copyright (c) UTC/CNRS Heudiasyc 2006 - 2013. All rights reserved.
    1010/// @brief Brief description.
     
    1616
    1717#include <Pacpus/kernel/FileLibConfig.h>
     18#include <Pacpus/kernel/PacpusException.h>
    1819
    19 #include <exception>
    2020#include <string>
    2121
    2222namespace pacpus {
    2323
    24 /** DbiteException
    25  * @brief Exception thrown when an error manipulation a dbite file occured.
    26  */
     24/// Exception thrown when an error during manipulation a dbite file occurs.
    2725class FILELIB_API DbiteException
    28     : public std::exception
     26    : virtual public PacpusException
    2927{
    3028public:
    31     /** Ctor of DbiteException.
    32      * @param what Information about the exception.
    33      */
    34     DbiteException(const std::string& what);
     29    /// Ctor.
     30    /// @param what Information about the exception.
     31    DbiteException(const std::string & what);
    3532
    36     /** Dtor of DbiteException. */
     33    /// Dtor.
    3734    virtual ~DbiteException() throw();
    38 
    39 
    40     /** Get more information about the error.
    41      * @return Message containing information about the error.
    42      */
    43     virtual const char* what() const throw();
    44 
    45 private:
    46     std::string mWhat;
    4735};
    4836
  • branches/2.0-beta1/src/FileLib/src/DbiteException.cpp

    r89 r156  
    33// CECILL-C License, Version 1.0.
    44// %pacpus:license}
    5 /// @version    $Id: DbiteException.cpp 87 2013-03-27 15:38:14Z morasjul $
     5/// @author  Marek Kurdej <firstname.surname@utc.fr>
     6/// @version    $Id: DbiteException.cpp 116 2013-06-25 11:44:25Z kurdejma $
    67
    78#include <Pacpus/kernel/DbiteException.h>
     
    1011
    1112DbiteException::DbiteException(const std::string& what)
    12     : mWhat(what)
     13    : PacpusException(what)
    1314{
    1415}
     
    1718{
    1819}
    19 
    20 const char* DbiteException::what() const throw()
    21 {
    22     return mWhat.c_str();
    23 }
  • branches/2.0-beta1/src/PacpusLib/CMakeLists.txt

    r155 r156  
    5858    ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/pacpus.h
    5959    ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/PacpusApplication.h
     60    ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/PacpusException.h
    6061    ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/road_time.h
    6162    ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/XmlComponentConfig.h
     
    7576    ./Log.cpp
    7677    ./PacpusApplication.cpp
     78    ./PacpusException.cpp
    7779    ./XmlComponentConfig.cpp
    7880    ./XmlConfigFile.cpp
Note: See TracChangeset for help on using the changeset viewer.