MCPcopy Create free account
hub / github.com/AGenUI/AGenUI / getExeCodeString

Function getExeCodeString

core/src/agenui_errorcode_define.cpp:5–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3namespace agenui {
4
5std::string getExeCodeString(AGenUIExeCode code) {
6 switch (code) {
7 case Execute_Success:
8 return "execute success";
9
10 // CreateSurface
11 case CreateSurface_MissingKeyword:
12 return "missing createSurface keyword";
13 case CreateSurface_MissingSurfaceId:
14 return "missing surfaceId in createSurface";
15 case CreateSurface_EmptySurfaceId:
16 return "surfaceId is empty in createSurface";
17 case CreateSurface_JsonError:
18 return "JSON exception in createSurface";
19 case CreateSurface_DuplicateSurfaceId:
20 return "surfaceId already exists";
21
22 // UpdateComponents
23 case UpdateComponents_MissingKeyword:
24 return "missing updateComponents keyword";
25 case UpdateComponents_MissingSurfaceId:
26 return "missing surfaceId in updateComponents";
27 case UpdateComponents_EmptySurfaceId:
28 return "surfaceId is empty in updateComponents";
29 case UpdateComponents_SurfaceNotFound:
30 return "surface not found in updateComponents";
31 case UpdateComponents_JsonError:
32 return "JSON exception in updateComponents";
33 case UpdateComponents_MissingComponentsField:
34 return "missing components field in updateComponents";
35 case UpdateComponents_ComponentsNotArray:
36 return "components is not an array in updateComponents";
37 case UpdateComponents_MissingComponentEntity:
38 return "missing component entity in updateComponents";
39 case UpdateComponents_TemplateExpansionFailed:
40 return "template expansion failed in updateComponents";
41
42 // UpdateDataModel
43 case UpdateDataModel_MissingKeyword:
44 return "missing updateDataModel keyword";
45 case UpdateDataModel_MissingSurfaceId:
46 return "missing surfaceId in updateDataModel";
47 case UpdateDataModel_EmptySurfaceId:
48 return "surfaceId is empty in updateDataModel";
49 case UpdateDataModel_SurfaceNotFound:
50 return "surface not found in updateDataModel";
51 case UpdateDataModel_JsonError:
52 return "JSON exception in updateDataModel";
53
54 // AppendDataModel
55 case AppendDataModel_MissingKeyword:
56 return "missing appendDataModel keyword";
57 case AppendDataModel_MissingSurfaceId:
58 return "missing surfaceId in appendDataModel";
59 case AppendDataModel_EmptySurfaceId:
60 return "surfaceId is empty in appendDataModel";
61 case AppendDataModel_SurfaceNotFound:
62 return "surface not found in appendDataModel";

Callers 6

reportErrorMethod · 0.85
processNormalEventMethod · 0.85
TEST_PFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 2

TEST_PFunction · 0.68
TESTFunction · 0.68