File: error.c

package info (click to toggle)
h3-pg 4.2.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,196 kB
  • sloc: sql: 4,469; ansic: 3,497; python: 322; sh: 56; makefile: 18
file content (11 lines) | stat: -rw-r--r-- 253 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
#include <postgres.h>

void
h3_assert(int error)
{
	if (error)
		ereport(ERROR, (
						errcode(ERRCODE_EXTERNAL_ROUTINE_EXCEPTION),
						errmsg("error code: %i", error),
						errhint("https://h3geo.org/docs/library/errors#table-of-error-codes")));
}