MCPcopy Create free account
hub / github.com/cutelyst/cutelyst / error

Method error

tests/teststatusmessage.cpp:25–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24 C_ATTR(error, :Local :AutoArgs)
25 void error(Context *c) { c->response()->setBody(StatusMessage::error(c, u"SM:error"_s)); }
26
27 C_ATTR(errorTest, :Local :AutoArgs)
28 void errorTest(Context *c, const QString &statusKey, const QString &errorKey)

Callers

nothing calls this directly

Calls 2

responseMethod · 0.80
setBodyMethod · 0.60

Tested by

no test coverage detected