Guiliani  Version 2.5 revision 7293 (documentation build 13)
GUIException.h
1/*
2* Copyright (C) TES Electronic Solutions GmbH,
3* All Rights Reserved.
4* Contact: info@guiliani.de
5*
6* This file is part of the Guiliani HMI framework
7* for the development of graphical user interfaces on embedded systems.
8*/
9
10#ifndef GUIEXCEPTION__H_
11#define GUIEXCEPTION__H_
12
13#include "eC_String.h"
14
25#ifdef GUILIANI_USE_EXCEPTIONS
26#define GUI_TRY try
27#define GUI_CATCH(x) catch(x)
28#define GUI_CATCH_ALL catch(...)
29#define GUI_THROW(x) throw x
30#define GUI_RETHROW throw;
31#else
32#define GUI_TRY if (true)
33#define GUI_CATCH(x) if (false)
34#define GUI_CATCH_ALL if (false)
35#define GUI_THROW(x)
36#define GUI_RETHROW
37#endif
38
40
42{
43public:
48
52 virtual ~CGUIException();
53
58 virtual eC_String Report() const;
59};
60
61#endif
This is the base class for Guiliani exceptions.
Definition: GUIException.h:42
virtual ~CGUIException()
virtual eC_String Report() const