Versions in this module Expand all Collapse all v0 v0.23.2 Feb 12, 2024 Changes in this version + const DefaultSeverity + const InternalErrorPrefix + const TxnRetryMsgPrefix + var ErrIntOverflowErrors = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthErrors = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupErrors = fmt.Errorf("proto: unexpected end of group") + func ComputeDefaultCode(err error) pgcode.Code + func DangerousStatementf(format string, args ...interface{}) error + func FullError(err error) string + func GetConstraintName(err error) string + func GetPGCode(err error) pgcode.Code + func GetPGCodeInternal(err error, computeDefaultCode func(err error) (code pgcode.Code)) (code pgcode.Code) + func GetSeverity(err error) string + func HasCandidateCode(err error) bool + func IsSQLRetryableError(err error) bool + func New(code pgcode.Code, msg string) error + func NewInternalTrackingError(issue int, detail string) error + func NewWithDepthf(depth int, code pgcode.Code, format string, args ...interface{}) error + func Newf(code pgcode.Code, format string, args ...interface{}) error + func WithCandidateCode(err error, code pgcode.Code) error + func WithConstraintName(err error, constraint string) error + func WithSeverity(err error, severity string) error + func Wrap(err error, code pgcode.Code, msg string) error + func WrapWithDepthf(depth int, err error, code pgcode.Code, format string, args ...interface{}) error + func Wrapf(err error, code pgcode.Code, format string, args ...interface{}) error + func WrongNumberOfPreparedStatements(n int) error + type ClientVisibleAmbiguousError interface + ClientVisibleAmbiguousError func() + type ClientVisibleRetryError interface + ClientVisibleRetryError func() + type Error struct + Code string + ConstraintName string + Detail string + Hint string + Message string + Severity string + Source *Error_Source + func Flatten(err error) *Error + func (*Error) Descriptor() ([]byte, []int) + func (*Error) ProtoMessage() + func (m *Error) Marshal() (dAtA []byte, err error) + func (m *Error) MarshalTo(dAtA []byte) (int, error) + func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Error) Reset() + func (m *Error) Size() (n int) + func (m *Error) String() string + func (m *Error) Unmarshal(dAtA []byte) error + func (m *Error) XXX_DiscardUnknown() + func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Error) XXX_Merge(src proto.Message) + func (m *Error) XXX_Size() int + func (m *Error) XXX_Unmarshal(b []byte) error + func (pg *Error) Error() string + func (pg *Error) ErrorDetail() string + func (pg *Error) ErrorHint() string + func (pg *Error) Format(s fmt.State, verb rune) + func (pg *Error) SafeFormatError(s errors.Printer) (next error) + type Error_Source struct + File string + Function string + Line int32 + func (*Error_Source) Descriptor() ([]byte, []int) + func (*Error_Source) ProtoMessage() + func (m *Error_Source) Marshal() (dAtA []byte, err error) + func (m *Error_Source) MarshalTo(dAtA []byte) (int, error) + func (m *Error_Source) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Error_Source) Reset() + func (m *Error_Source) Size() (n int) + func (m *Error_Source) String() string + func (m *Error_Source) Unmarshal(dAtA []byte) error + func (m *Error_Source) XXX_DiscardUnknown() + func (m *Error_Source) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Error_Source) XXX_Merge(src proto.Message) + func (m *Error_Source) XXX_Size() int + func (m *Error_Source) XXX_Unmarshal(b []byte) error