Sha256: 1be1c1f2e0fbe79fa4c59ef111df20a4a7dbf5113d45a59d4ef1cd438702a91b

Contents?: true

Size: 1.82 KB

Versions: 50

Compression:

Stored size: 1.82 KB

Contents

#ifndef _DO_SQLITE3_ERROR_H_
#define _DO_SQLITE3_ERROR_H_

#include "do_common.h"

static struct errcodes do_sqlite3_errors[] = {
#ifdef SQLITE_ERROR
  ERRCODE(SQLITE_ERROR, "SyntaxError"),
#endif
#ifdef SQLITE_INTERNAL
  ERRCODE(SQLITE_INTERNAL, "SQLError"),
#endif
#ifdef SQLITE_PERM
  ERRCODE(SQLITE_PERM, "ConnectionError"),
#endif
#ifdef SQLITE_ABORT
  ERRCODE(SQLITE_ABORT, "ConnectionError"),
#endif
#ifdef SQLITE_BUSY
  ERRCODE(SQLITE_BUSY, "ConnectionError"),
#endif

#ifdef SQLITE_LOCKED
  ERRCODE(SQLITE_LOCKED, "ConnectionError"),
#endif
#ifdef SQLITE_NOMEM
  ERRCODE(SQLITE_NOMEM, "ConnectionError"),
#endif
#ifdef SQLITE_READONLY
  ERRCODE(SQLITE_READONLY, "ConnectionError"),
#endif
#ifdef SQLITE_INTERRUPT
  ERRCODE(SQLITE_INTERRUPT, "ConnectionError"),
#endif
#ifdef SQLITE_IOERR
  ERRCODE(SQLITE_IOERR, "ConnectionError"),
#endif
#ifdef SQLITE_CORRUPT
  ERRCODE(SQLITE_CORRUPT, "ConnectionError"),
#endif
#ifdef SQLITE_FULL
  ERRCODE(SQLITE_FULL, "ConnectionError"),
#endif
#ifdef SQLITE_CANTOPEN
  ERRCODE(SQLITE_CANTOPEN, "ConnectionError"),
#endif
#ifdef SQLITE_EMPTY
  ERRCODE(SQLITE_EMPTY, "ConnectionError"),
#endif
#ifdef SQLITE_SCHEMA
  ERRCODE(SQLITE_SCHEMA, "DataError"),
#endif
#ifdef SQLITE_TOOBIG
  ERRCODE(SQLITE_TOOBIG, "DataError"),
#endif
#ifdef SQLITE_MISMATCH
  ERRCODE(SQLITE_MISMATCH, "DataError"),
#endif
#ifdef SQLITE_CONSTRAINT
  ERRCODE(SQLITE_CONSTRAINT, "IntegrityError"),
#endif
#ifdef SQLITE_MISUSE
  ERRCODE(SQLITE_MISUSE, "SQLError"),
#endif

#ifdef SQLITE_NOLFS
  ERRCODE(SQLITE_NOLFS, "ConnectionError"),
#endif
#ifdef SQLITE_FORMAT
  ERRCODE(SQLITE_FORMAT, "SyntaxError"),
#endif
#ifdef SQLITE_RANGE
  ERRCODE(SQLITE_RANGE, "DataError"),
#endif
#ifdef SQLITE_NOTADB
  ERRCODE(SQLITE_NOTADB, "ConnectionError"),
#endif

#ifdef SQLITE_ROW
  ERRCODE(SQLITE_ROW, "SyntaxError"),
#endif
  {0, NULL, NULL}
};

#endif

Version data entries

50 entries across 50 versions & 2 rubygems

Version Path
sbf-do_sqlite3-0.11.0 ext/do_sqlite3/error.h
sbf-do_sqlite3-0.10.17 ext/do_sqlite3/error.h
do_sqlite3-0.10.17 ext/do_sqlite3/error.h
do_sqlite3-0.10.17-x86-mswin32-60 ext/do_sqlite3/error.h
do_sqlite3-0.10.17-x86-mingw32 ext/do_sqlite3/error.h
do_sqlite3-0.10.17-java ext/do_sqlite3/error.h
do_sqlite3-0.10.16 ext/do_sqlite3/error.h
do_sqlite3-0.10.16-x86-mswin32-60 ext/do_sqlite3/error.h
do_sqlite3-0.10.16-x86-mingw32 ext/do_sqlite3/error.h
do_sqlite3-0.10.16-java ext/do_sqlite3/error.h
do_sqlite3-0.10.15 ext/do_sqlite3/error.h
do_sqlite3-0.10.15-x86-mswin32-60 ext/do_sqlite3/error.h
do_sqlite3-0.10.15-x86-mingw32 ext/do_sqlite3/error.h
do_sqlite3-0.10.15-java ext/do_sqlite3/error.h
do_sqlite3-0.10.14 ext/do_sqlite3/error.h
do_sqlite3-0.10.14-x86-mswin32-60 ext/do_sqlite3/error.h
do_sqlite3-0.10.14-x86-mingw32 ext/do_sqlite3/error.h
do_sqlite3-0.10.14-java ext/do_sqlite3/error.h
do_sqlite3-0.10.13-x86-mswin32-60 ext/do_sqlite3/error.h
do_sqlite3-0.10.13-x86-mingw32 ext/do_sqlite3/error.h