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

Class DukErrorException

Source/Utils/dukglue/dukexception.h:27–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25};
26
27class DukErrorException : public DukException
28{
29public:
30 DukErrorException(duk_context* ctx, int return_code, bool pop_error = true) {
31 if (return_code != 0) {
32 duk_get_prop_string(ctx, -1, "stack");
33 mMsg = duk_safe_to_string(ctx, -1);
34 duk_pop(ctx);
35
36 if (pop_error)
37 duk_pop(ctx);
38 }
39 }
40};

Callers 4

deserializeMethod · 0.85
dukglue_pcall_methodFunction · 0.85
dukglue_pcallFunction · 0.85
dukglue_pevalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected