source: pacpusframework/trunk/include/Pacpus/kernel/DbiteException.h@ 114

Last change on this file since 114 was 114, checked in by Marek Kurdej, 11 years ago

Minor: added pacpus namespace in Win32ShMem.
Ignored dll-interface warnings in MSVC (unimportant because concerns STL): C4251, C4275.

  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1// %pacpus:license{
2// This file is part of the PACPUS framework distributed under the
3// CECILL-C License, Version 1.0.
4// %pacpus:license}
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
22#ifdef _MSC_VER
23# pragma warning(push)
24# pragma warning(disable: 4251)
25#endif // _MSC_VER
26
27namespace pacpus {
28
29/** DbiteException
30 * @brief Exception thrown when an error manipulation a dbite file occured.
31 */
32class FILELIB_API DbiteException
33 : public std::exception
34{
35public:
36 /** Ctor of DbiteException.
37 * @param what Information about the exception.
38 */
39 DbiteException(const std::string& what);
40
41 /** Dtor of DbiteException. */
42 virtual ~DbiteException() throw();
43
44
45 /** Get more information about the error.
46 * @return Message containing information about the error.
47 */
48 virtual const char* what() const throw();
49
50
51private:
52 std::string mWhat;
53};
54
55} // namespace pacpus
56
57#ifdef _MSC_VER
58# pragma warning(pop)
59#endif // _MSC_VER
60
61#endif // DEF_PACPUS_DBITEEXCEPTION_H
Note: See TracBrowser for help on using the repository browser.