MCPcopy Create free account
hub / github.com/apache/cloudberry / PLy_exception_set

Function PLy_exception_set

src/pl/plpython/plpy_elog.c:485–496  ·  view source on GitHub ↗

call PyErr_SetString with a vprint interface and translation support */

Source from the content-addressed store, hash-verified

483
484/* call PyErr_SetString with a vprint interface and translation support */
485void
486PLy_exception_set(PyObject *exc, const char *fmt,...)
487{
488 char buf[1024];
489 va_list ap;
490
491 va_start(ap, fmt);
492 vsnprintf(buf, sizeof(buf), dgettext(TEXTDOMAIN, fmt), ap);
493 va_end(ap);
494
495 PyErr_SetString(exc, buf);
496}
497
498/* same, with pluralized message */
499void

Callers 15

PLy_cursorFunction · 0.85
PLy_cursor_planFunction · 0.85
PLy_cursor_iternextFunction · 0.85
PLy_cursor_fetchFunction · 0.85
PLy_cursor_closeFunction · 0.85
PLy_spi_prepareFunction · 0.85
PLy_spi_executeFunction · 0.85
PLy_spi_execute_planFunction · 0.85
PLy_spi_execute_queryFunction · 0.85
PLy_subtransaction_enterFunction · 0.85
PLy_subtransaction_exitFunction · 0.85
PLy_outputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected