Changeset 60 in pacpusframework


Ignore:
Timestamp:
Jan 9, 2013, 12:38:31 PM (12 years ago)
Author:
sgosseli
Message:

Write the documentation of DbiteException.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/Pacpus/kernel/DbiteException.h

    r59 r60  
    11/**
    22 *
    3  * Distributed under the UTC Heudiascy Pacpus License, Version 1.0.
    4  * Copyright (c) UTC Heudiasyc 2010 - 2013. All rights reserved.
    5  *
    6  * See the LICENSE file for more information or a copy at:
    7  *   http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt
    8  *
     3 * This file is part of the PACPUS framework distributed under the
     4 * CECILL-C License, Version 1.0.
     5 *
     6 * @author  Marek Kurdej
     7 * @date    December, 2012
     8 * @version $Id$
     9 * @copyright Copyright (c) UTC/CNRS Heudiasyc 2005 - 2013. All rights reserved.
     10 *
    911 */
    1012
     
    1921namespace pacpus {
    2022
     23/** DbiteException
     24 * @brief Exception thrown when an error manipulation a dbite file occured.
     25 */
    2126class FILELIB_API DbiteException
    22         : public std::exception
     27    : public std::exception
    2328{
    2429public:
    25     /// @todo Documentation
    26     DbiteException();
    27     /// @todo Documentation
    28     DbiteException(const char * what);
    29     /// @todo Documentation
     30    /** Ctor of DbiteException.
     31     * @param what Information about the exception.
     32     */
     33    DbiteException(const std::string& what);
     34
     35    /** Dtor of DbiteException. */
    3036    ~DbiteException() throw();
    3137
    32     /// @todo Documentation
    33     virtual const char * what() const throw();
     38    /** Get more information about the error.
     39     * @return Message containing information about the error.
     40     */
     41    virtual const char* what() const throw();
    3442
    3543private:
  • trunk/src/FileLib/src/DbiteException.cpp

    r31 r60  
    1313using namespace pacpus;
    1414
    15 DbiteException::DbiteException()
    16 {
    17 }
    18 
    19 DbiteException::DbiteException(const char * what)
     15DbiteException::DbiteException(const std::string& what)
    2016    : mWhat(what)
    2117{
     
    2622}
    2723
    28 const char * DbiteException::what() const throw()
     24const char* DbiteException::what() const throw()
    2925{
    3026    return mWhat.c_str();
Note: See TracChangeset for help on using the changeset viewer.