MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / DukException

Class DukException

Source/Utils/dukglue/dukexception.h:6–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <exception>
5
6class DukException : public std::exception
7{
8public:
9 virtual const char* what() const noexcept override
10 {
11 return mMsg.c_str();
12 }
13
14 template <typename T>
15 DukException& operator<<(T rhs)
16 {
17 std::stringstream ss;
18 ss << mMsg << rhs;
19 mMsg = ss.str();
20 return *this;
21 }
22
23protected:
24 std::string mMsg;
25};
26
27class DukErrorException : public DukException
28{

Callers 13

operator==Method · 0.85
copy_from_stackMethod · 0.85
deserializeMethod · 0.85
pushMethod · 0.85
as_boolMethod · 0.85
as_doubleMethod · 0.85
as_floatMethod · 0.85
as_intMethod · 0.85
as_uintMethod · 0.85
as_pointerMethod · 0.85
DukValueClass · 0.85
as_c_stringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected