w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Rexception.hpp
Go to the documentation of this file.
1// $Id: Rexception.hpp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2013-2018 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2018-10-27 1060 1.3 drop throw() list; use noexcept
8// 2017-04-29 888 1.2 BUGFIX: add fErrtxt for proper what() return
9// 2014-12-30 625 1.1 add ctor(meth,text,emsg)
10// 2013-02-12 487 1.0.1 add ErrMsg() getter
11// 2013-01-12 474 1.0 Initial version
12// ---------------------------------------------------------------------------
13
14
19#ifndef included_Retro_Rexception
20#define included_Retro_Rexception 1
21
22#include <stdexcept>
23#include <string>
24
25#include "RerrMsg.hpp"
26
27namespace Retro {
28
29 class Rexception : public std::exception {
30 public:
31 Rexception();
32 Rexception(const RerrMsg& errmsg);
33 Rexception(const std::string& meth,
34 const std::string& text);
35 Rexception(const std::string& meth,
36 const std::string& text, int errnum);
37 Rexception(const std::string& meth,
38 const std::string& text, const RerrMsg& errmsg);
40
41 virtual const char* what() const noexcept;
42 const RerrMsg& ErrMsg() const;
43
44 protected:
46 std::string fErrtxt;
47 };
48
49} // end namespace Retro
50
51#include "Rexception.ipp"
52
53#endif
FIXME_docs.
Definition: RerrMsg.hpp:25
FIXME_docs.
Definition: Rexception.hpp:29
Rexception()
Default constructor.
Definition: Rexception.cpp:32
RerrMsg fErrmsg
message object
Definition: Rexception.hpp:45
virtual const char * what() const noexcept
FIXME_docs.
Definition: Rexception.cpp:81
const RerrMsg & ErrMsg() const
FIXME_docs.
Definition: Rexception.ipp:20
~Rexception()
Destructor.
Definition: Rexception.cpp:75
std::string fErrtxt
message text (for what())
Definition: Rexception.hpp:46
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47