PGROUTING  2.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
e_report.c File Reference
#include "./postgres_connection.h"
#include "./debug_macro.h"
#include "./e_report.h"

Go to the source code of this file.

Functions

void pgr_error (char *err)
 error with no hint More...
 
void pgr_error2 (char *log, char *err)
 error with hint More...
 
void pgr_global_report (char *log, char *notice, char *err)
 notice & error More...
 
void pgr_notice (char *notice)
 notice with no hint More...
 
void pgr_notice2 (char *log, char *notice)
 notice with hint More...
 

Function Documentation

void pgr_error ( char *  error_msg)

error with no hint

if (err_msg) {
pfree(<data>);
}
pgr_error(&error_msg);
precondition: before calling ereport
assert(!*error_msg);

Definition at line 61 of file e_report.c.

References err_msg, pgr_cstring2char(), and PGR_DBG.

void pgr_error2 ( char *  log_msg,
char *  error_msg 
)

error with hint

if (err_msg) {
pfree(<data>);
}
pgr_error(&log_msg, &error_msg);
precondition: before calling ereport
assert(!*log_msg);
assert(!*error_msg);

Definition at line 79 of file e_report.c.

References PGR_DBG.

void pgr_global_report ( char *  log_msg,
char *  notice_msg,
char *  error_msg 
)

notice & error

pgr_notice(&log_msg, &notice_msg, &error_msg);
precondition: before calling ereport
assert(!*log_msg);
assert(!*notice_msg);
assert(!*error_msg);

Definition at line 93 of file e_report.c.

Referenced by compute(), and process().

void pgr_notice ( char *  notice_msg)

notice with no hint

pgr_notice(&log_msg, &notice_msg);
precondition: before calling ereport
assert(!log_msg);
assert(!notice_msg);

Definition at line 31 of file e_report.c.

References PGR_DBG.

Referenced by pgr_notice2().

void pgr_notice2 ( char *  log_msg,
char *  notice_msg 
)

notice with hint

pgr_notice(&log_msg, &notice_msg);
precondition: before calling ereport
assert(!log_msg);
assert(!notice_msg);

Definition at line 42 of file e_report.c.

References PGR_DBG, and pgr_notice().