source: pacpusframework/branches/0.1.x/include/Pacpus/kernel/PacpusException.h@ 247

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

Added: PacpusException.

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 June, 2013
8/// @version $Id$
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_PACPUSEXCEPTION_H
15#define DEF_PACPUS_PACPUSEXCEPTION_H
16
17#include <Pacpus/kernel/PacpusLibConfig.h>
18
19//#include <boost/exception/exception.hpp>
20#include <exception>
21#include <string>
22
23#ifdef _MSC_VER
24# pragma warning(push)
25# pragma warning(disable: 4251)
26#endif // _MSC_VER
27
28namespace pacpus {
29
30/// Base class for all exceptions in the framework
31class PACPUSLIB_API PacpusException
32 : virtual public std::exception
33 //, virtual public boost::exception
34{
35public:
36 /// Ctor.
37 /// @param what Information about the exception.
38 PacpusException(const std::string & what);
39
40 /// Dtor.
41 virtual ~PacpusException() throw();
42
43 /// Gets more information about the error.
44 ///
45 /// @returns Message containing information about the error.
46 virtual const char * what() const throw();
47
48protected:
49 std::string mWhat;
50};
51
52} // namespace pacpus
53
54#ifdef _MSC_VER
55# pragma warning(pop)
56#endif // _MSC_VER
57
58#endif // DEF_PACPUS_PACPUSEXCEPTION_H
Note: See TracBrowser for help on using the repository browser.