MCPcopy Create free account
hub / github.com/mattn/go-sqlite3 / Error

Method Error

error.go:83–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81}
82
83func (err Error) Error() string {
84 var str string
85 if err.err != "" {
86 str = err.err
87 } else {
88 str = C.GoString(C.sqlite3_errstr(C.int(err.Code)))
89 }
90 if err.SystemErrno != 0 {
91 str += ": " + err.SystemErrno.Error()
92 }
93 return str
94}
95
96// result codes from http://www.sqlite.org/c3ref/c_abort_rollback.html
97var (

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected