Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/jackc/pgx
/ Error
Method
Error
pgconn/errors.go:53–55 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
51
}
52
53
func
(pe *PgError) Error() string {
54
return
pe.Severity +
": "
+ pe.Message +
" (SQLSTATE "
+ pe.Code +
")"
55
}
56
57
// SQLState returns the SQLState of the error.
58
func
(pe *PgError) SQLState() string {
Callers
15
TestTraceAcquire
Function · 0.45
TestConnReleaseClosesConnInFailedTransaction
Function · 0.45
TestConnReleaseWhenBeginFail
Function · 0.45
TestParseConfigKVLeadingEqual
Function · 0.45
TestParseConfigKVTrailingBackslash
Function · 0.45
BenchmarkCommandTagTypeFromString
Function · 0.45
TestConnectOAuthError
Function · 0.45
TestConnectInvalidUser
Function · 0.45
TestConnectFailsWithResolveFailureAndFailedConnectionAttempts
Function · 0.45
TestConnPrepareContextPrecanceled
Function · 0.45
TestConnDeallocate
Function · 0.45
TestConnDeallocateSucceedsInAbortedTransaction
Function · 0.45
Calls
no outgoing calls
Tested by
15
TestTraceAcquire
Function · 0.36
TestConnReleaseClosesConnInFailedTransaction
Function · 0.36
TestConnReleaseWhenBeginFail
Function · 0.36
TestParseConfigKVLeadingEqual
Function · 0.36
TestParseConfigKVTrailingBackslash
Function · 0.36
BenchmarkCommandTagTypeFromString
Function · 0.36
TestConnectOAuthError
Function · 0.36
TestConnectInvalidUser
Function · 0.36
TestConnectFailsWithResolveFailureAndFailedConnectionAttempts
Function · 0.36
TestConnPrepareContextPrecanceled
Function · 0.36
TestConnDeallocate
Function · 0.36
TestConnDeallocateSucceedsInAbortedTransaction
Function · 0.36