Last change
on this file since 86 was 86, checked in by morasjul, 11 years ago |
Corriger temporairement un bug de dependance entre FileLib et PacpusLib lie à DBTException
|
-
Property svn:keywords
set to
Id
|
File size:
1.3 KB
|
Rev | Line | |
---|
[76] | 1 | // %pacpus:license{
|
---|
[73] | 2 | // This file is part of the PACPUS framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
[76] | 4 | // %pacpus:license}
|
---|
[73] | 5 | /// @file
|
---|
| 6 | /// @author Marek Kurdej <firstname.surname@utc.fr>
|
---|
| 7 | /// @date Month, 2012
|
---|
| 8 | /// @version $Id: DbiteException.h 86 2013-03-27 13:17:43Z morasjul $
|
---|
| 9 | /// @copyright Copyright (c) UTC/CNRS Heudiasyc 2006 - 2013. All rights reserved.
|
---|
| 10 | /// @brief Brief description.
|
---|
| 11 | ///
|
---|
| 12 | /// Detailed description.
|
---|
| 13 |
|
---|
| 14 | #ifndef DEF_PACPUS_DBITEEXCEPTION_H
|
---|
| 15 | #define DEF_PACPUS_DBITEEXCEPTION_H
|
---|
| 16 |
|
---|
| 17 | #include <Pacpus/kernel/FileLibConfig.h>
|
---|
| 18 |
|
---|
| 19 | #include <exception>
|
---|
| 20 | #include <string>
|
---|
| 21 |
|
---|
| 22 | namespace pacpus {
|
---|
| 23 |
|
---|
| 24 | /** DbiteException
|
---|
| 25 | * @brief Exception thrown when an error manipulation a dbite file occured.
|
---|
| 26 | */
|
---|
| 27 | class FILELIB_API DbiteException
|
---|
| 28 | : public std::exception
|
---|
| 29 | {
|
---|
| 30 | public:
|
---|
| 31 | /** Ctor of DbiteException.
|
---|
| 32 | * @param what Information about the exception.
|
---|
| 33 | */
|
---|
[86] | 34 | DbiteException(const std::string& what)
|
---|
| 35 | : mWhat(what)
|
---|
| 36 | {
|
---|
| 37 | }
|
---|
[73] | 38 |
|
---|
| 39 | /** Dtor of DbiteException. */
|
---|
[86] | 40 | virtual ~DbiteException() throw()
|
---|
| 41 | {
|
---|
| 42 | }
|
---|
[73] | 43 |
|
---|
| 44 | /** Get more information about the error.
|
---|
| 45 | * @return Message containing information about the error.
|
---|
| 46 | */
|
---|
[86] | 47 | virtual const char* what() const throw()
|
---|
| 48 | {
|
---|
| 49 | return mWhat.c_str();
|
---|
| 50 | }
|
---|
[73] | 51 |
|
---|
| 52 | private:
|
---|
| 53 | std::string mWhat;
|
---|
| 54 | };
|
---|
| 55 |
|
---|
| 56 | } // namespace pacpus
|
---|
| 57 |
|
---|
| 58 | #endif // DEF_PACPUS_DBITEEXCEPTION_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.