2011-12-18 20:14:16 +01:00
|
|
|
/*
|
|
|
|
* src/pl/plpython/plpy_elog.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PLPY_ELOG_H
|
|
|
|
#define PLPY_ELOG_H
|
|
|
|
|
|
|
|
/* global exception classes */
|
|
|
|
extern PyObject *PLy_exc_error;
|
|
|
|
extern PyObject *PLy_exc_fatal;
|
|
|
|
extern PyObject *PLy_exc_spi_error;
|
|
|
|
|
2015-03-26 19:03:19 +01:00
|
|
|
extern void PLy_elog(int elevel, const char *fmt,...) pg_attribute_printf(2, 3);
|
2011-12-18 20:14:16 +01:00
|
|
|
|
2015-03-26 19:03:19 +01:00
|
|
|
extern void PLy_exception_set(PyObject *exc, const char *fmt,...) pg_attribute_printf(2, 3);
|
2011-12-18 20:14:16 +01:00
|
|
|
|
2015-03-26 19:03:19 +01:00
|
|
|
extern void PLy_exception_set_plural(PyObject *exc, const char *fmt_singular, const char *fmt_plural,
|
|
|
|
unsigned long n,...) pg_attribute_printf(2, 5) pg_attribute_printf(3, 5);
|
2011-12-18 20:14:16 +01:00
|
|
|
|
2012-06-10 21:20:04 +02:00
|
|
|
#endif /* PLPY_ELOG_H */
|