source: pacpusframework/trunk/include/Pacpus/kernel/PacpusException.h@ 340

Last change on this file since 340 was 317, checked in by Marek Kurdej, 10 years ago

TestFileLib: minor fixes. Tests pass.

File size: 1.4 KB
RevLine 
[156]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
[280]19#include <boost/exception/exception.hpp>
20#include <boost/exception/error_info.hpp>
[284]21#include <stdexcept>
[156]22#include <string>
23
24#ifdef _MSC_VER
25# pragma warning(push)
[280]26# pragma warning(disable: 4251 4275)
[156]27#endif // _MSC_VER
28
[280]29namespace pacpus
30{
[156]31
32/// Base class for all exceptions in the framework
33class PACPUSLIB_API PacpusException
[280]34 : /*virtual*/ public std::runtime_error
35 , virtual public boost::exception
[156]36{
37public:
[317]38 PacpusException(char const* what);
39
[156]40 /// Ctor.
41 /// @param what Information about the exception.
[280]42 PacpusException(std::string const& what = "");
[156]43
44 /// Dtor.
[284]45 virtual ~PacpusException() throw();
[156]46};
47
48} // namespace pacpus
49
[280]50typedef boost::error_info<struct tag_errinfo_signal, int> errinfo_signal;
51
[156]52#ifdef _MSC_VER
53# pragma warning(pop)
54#endif // _MSC_VER
55
56#endif // DEF_PACPUS_PACPUSEXCEPTION_H
Note: See TracBrowser for help on using the repository browser.