MCPcopy Create free account
hub / github.com/anjo76/angelscript / ScriptGetExceptionInfo

Function ScriptGetExceptionInfo

sdk/add_on/scripthelper/scripthelper.cpp:972–983  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

970}
971
972string ScriptGetExceptionInfo()
973{
974 asIScriptContext *ctx = asGetActiveContext();
975 if (!ctx)
976 return "";
977
978 const char *msg = ctx->GetExceptionString();
979 if (msg == 0)
980 return "";
981
982 return string(msg);
983}
984
985void RegisterExceptionRoutines(asIScriptEngine *engine)
986{

Callers

nothing calls this directly

Calls 1

GetExceptionStringMethod · 0.80

Tested by

no test coverage detected