MCPcopy Index your code
hub / github.com/go-pg/pg / Error

Interface Error

error.go:21–34  ·  view source on GitHub ↗

Error represents an error returned by PostgreSQL server using PostgreSQL ErrorResponse protocol. https://www.postgresql.org/docs/10/static/protocol-message-formats.html

Source from the content-addressed store, hash-verified

19//
20// https://www.postgresql.org/docs/10/static/protocol-message-formats.html
21type Error interface {
22 error
23
24 // Field returns a string value associated with an error field.
25 //
26 // https://www.postgresql.org/docs/10/static/protocol-error-fields.html
27 Field(field byte) string
28
29 // IntegrityViolation reports whether an error is a part of
30 // Integrity Constraint Violation class of errors.
31 //
32 // https://www.postgresql.org/docs/10/static/errcodes-appendix.html
33 IntegrityViolation() bool
34}
35
36var _ Error = (*internal.PGError)(nil)
37

Callers 21

shouldRetryMethod · 0.65
ExampleErrorFunction · 0.65
isBadConnFunction · 0.65
SelectOrInsertMethod · 0.65
CountEstimateMethod · 0.65
addFieldsMethod · 0.65
typeByIndexFunction · 0.65
fieldByIndexFunction · 0.65
BenchmarkExecWithErrorFunction · 0.65
ExampleErrorFunction · 0.65
TestIntegrityErrorMethod · 0.65
SelectOrInsertMethod · 0.65

Implementers 2

mockPGErrorbase_test.go
PGErrorinternal/error.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…