Error handling.

This commit is contained in:
Nuno Cruces
2023-01-25 14:59:02 +00:00
parent 191c1f53df
commit 921e1eafc2
10 changed files with 112 additions and 42 deletions

View File

@@ -36,6 +36,7 @@ type errorString string
func (e errorString) Error() string { return string(e) }
const (
nilErr = errorString("sqlite3: invalid memory address or null pointer dereference")
oomErr = errorString("sqlite3: out of memory")
rangeErr = errorString("sqlite3: index out of range")
noNulErr = errorString("sqlite3: missing NUL terminator")