MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / Error

Struct Error

pkg/sql/pgwire/pgerror/errors.pb.go:29–39  ·  view source on GitHub ↗

please upgrade the proto package Error contains all Postgres wire protocol error fields. See https://www.postgresql.org/docs/current/static/protocol-error-fields.html for a list of all Postgres error fields, most of which are optional and can be used to provide auxiliary error information.

Source from the content-addressed store, hash-verified

27// for a list of all Postgres error fields, most of which are optional and can
28// be used to provide auxiliary error information.
29type Error struct {
30 // standard pg error fields. This can be passed
31 // over the pg wire protocol.
32 Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
33 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
34 Detail string `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"`
35 Hint string `protobuf:"bytes,4,opt,name=hint,proto3" json:"hint,omitempty"`
36 Severity string `protobuf:"bytes,8,opt,name=severity,proto3" json:"severity,omitempty"`
37 ConstraintName string `protobuf:"bytes,9,opt,name=constraint_name,json=constraintName,proto3" json:"constraint_name,omitempty"`
38 Source *Error_Source `protobuf:"bytes,5,opt,name=source,proto3" json:"source,omitempty"`
39}
40
41func (m *Error) Reset() { *m = Error{} }
42func (m *Error) String() string { return proto.CompactTextString(m) }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected