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

Function ERR_warning

src/jrd/err.cpp:353–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351
352
353void ERR_warning(const Arg::StatusVector& v)
354{
355/**************************************
356 *
357 * E R R _ w a r n i n g
358 *
359 **************************************
360 *
361 * Functional description
362 * Write an error out to the status vector but
363 * don't throw an exception. This allows
364 * sending a warning message back to the user
365 * without stopping execution of a request. Note
366 * that subsequent errors can supersede this one.
367 *
368 **************************************/
369 thread_db* tdbb = JRD_get_thread_data();
370 FbStatusVector* s = tdbb->tdbb_status_vector;
371
372 v.copyTo(s);
373 if (auto request = tdbb->getRequest())
374 request->req_flags |= req_warning;
375}
376
377
378void ERR_append_status(FbStatusVector* status_vector, const Arg::StatusVector& v)

Callers 1

EVL_fieldFunction · 0.85

Calls 3

JRD_get_thread_dataFunction · 0.85
copyToMethod · 0.45
getRequestMethod · 0.45

Tested by

no test coverage detected