Source File
error.go
Belonging Package
github.com/ncruces/go-sqlite3/internal/util
package utilimport ()type ErrorString stringfunc ( ErrorString) () string { return string() }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")NoBinaryErr = ErrorString("sqlite3: no SQLite binary embed/set/loaded")BadBinaryErr = ErrorString("sqlite3: invalid SQLite binary embed/set/loaded")TimeErr = ErrorString("sqlite3: invalid time value")WhenceErr = ErrorString("sqlite3: invalid whence")OffsetErr = ErrorString("sqlite3: invalid offset")TailErr = ErrorString("sqlite3: multiple statements")IsolationErr = ErrorString("sqlite3: unsupported isolation level")ValueErr = ErrorString("sqlite3: unsupported value")NoVFSErr = ErrorString("sqlite3: no such vfs: "))func () ErrorString {:= "sqlite3: assertion failed"if , , , := runtime.Caller(1); {+= " (" + + ":" + strconv.Itoa() + ")"}return ErrorString()}func ( uint32) string {switch {case ABORT_ROLLBACK:return "sqlite3: abort due to ROLLBACK"case ROW:return "sqlite3: another row available"case DONE:return "sqlite3: no more rows available"}switch & 0xff {case OK:return "sqlite3: not an error"case ERROR:return "sqlite3: SQL logic error"case INTERNAL:breakcase PERM:return "sqlite3: access permission denied"case ABORT:return "sqlite3: query aborted"case BUSY:return "sqlite3: database is locked"case LOCKED:return "sqlite3: database table is locked"case NOMEM:return "sqlite3: out of memory"case READONLY:return "sqlite3: attempt to write a readonly database"case INTERRUPT:return "sqlite3: interrupted"case IOERR:return "sqlite3: disk I/O error"case CORRUPT:return "sqlite3: database disk image is malformed"case NOTFOUND:return "sqlite3: unknown operation"case FULL:return "sqlite3: database or disk is full"case CANTOPEN:return "sqlite3: unable to open database file"case PROTOCOL:return "sqlite3: locking protocol"case EMPTY:breakcase SCHEMA:return "sqlite3: database schema has changed"case TOOBIG:return "sqlite3: string or blob too big"case CONSTRAINT:return "sqlite3: constraint failed"case MISMATCH:return "sqlite3: datatype mismatch"case MISUSE:return "sqlite3: bad parameter or other API misuse"case NOLFS:breakcase AUTH:return "sqlite3: authorization denied"case FORMAT:breakcase RANGE:return "sqlite3: column index out of range"case NOTADB:return "sqlite3: file is not a database"case NOTICE:return "sqlite3: notification message"case WARNING:return "sqlite3: warning message"}return "sqlite3: unknown error"}type ErrorJoiner []errorfunc ( *ErrorJoiner) ( ...error) {for , := range {if != nil {* = append(*, )}}}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |