source:
pacpusframework/trunk/include/Pacpus/kernel/DbiteException.h@
114
Last change on this file since 114 was 114, checked in by , 11 years ago | |
---|---|
|
|
File size: 1.4 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 114 2013-06-25 08:55:43Z kurdejma $ | |
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 | ||
[114] | 22 | #ifdef _MSC_VER |
23 | # pragma warning(push) | |
24 | # pragma warning(disable: 4251) | |
25 | #endif // _MSC_VER | |
26 | ||
[73] | 27 | namespace pacpus { |
28 | ||
29 | /** DbiteException | |
30 | * @brief Exception thrown when an error manipulation a dbite file occured. | |
31 | */ | |
32 | class FILELIB_API DbiteException | |
33 | : public std::exception | |
34 | { | |
35 | public: | |
36 | /** Ctor of DbiteException. | |
37 | * @param what Information about the exception. | |
38 | */ | |
[87] | 39 | DbiteException(const std::string& what); |
[73] | 40 | |
41 | /** Dtor of DbiteException. */ | |
[87] | 42 | virtual ~DbiteException() throw(); |
[73] | 43 | |
[87] | 44 | |
[73] | 45 | /** Get more information about the error. |
46 | * @return Message containing information about the error. | |
47 | */ | |
[87] | 48 | virtual const char* what() const throw(); |
[73] | 49 | |
[87] | 50 | |
[73] | 51 | private: |
52 | std::string mWhat; | |
53 | }; | |
54 | ||
55 | } // namespace pacpus | |
56 | ||
[114] | 57 | #ifdef _MSC_VER |
58 | # pragma warning(pop) | |
59 | #endif // _MSC_VER | |
60 | ||
[73] | 61 | #endif // DEF_PACPUS_DBITEEXCEPTION_H |
Note:
See TracBrowser
for help on using the repository browser.