MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / ERR_error

Function ERR_error

src/jrd/err.cpp:141–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139
140
141void ERR_error(int number)
142{
143/**************************************
144 *
145 * E R R _ e r r o r
146 *
147 **************************************
148 *
149 * Functional description
150 * Post a user-level error. This is a temporary mechanism
151 * that will eventually disappear.
152 *
153 **************************************/
154 TEXT errmsg[MAX_ERRMSG_LEN + 1];
155
156 if (gds__msg_lookup(0, FB_IMPL_MSG_FACILITY_JRD_BUGCHK, number, sizeof(errmsg), errmsg, NULL) < 1)
157 sprintf(errmsg, "error code %d", number);
158
159 ERR_post(Arg::Gds(isc_random) << Arg::Str(errmsg));
160}
161
162
163void ERR_log(int facility, int number, const TEXT* message)

Callers 1

slice_callbackFunction · 0.85

Calls 3

GdsClass · 0.85
StrClass · 0.85
ERR_postFunction · 0.70

Tested by

no test coverage detected