pgerror

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUniqueViolation = errors.New("unique constraint violation")
	ErrNotFound        = errors.New("record not found")
)

Functions

func ParseError

func ParseError(err error) error

Types

type NotFoundError

type NotFoundError struct {
	Err    error
	Table  string
	Detail string
}

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

func (*NotFoundError) Unwrap

func (e *NotFoundError) Unwrap() error

type UniqueConstraintError

type UniqueConstraintError struct {
	Err        error
	Constraint string
	Table      string
	Detail     string
}

func (*UniqueConstraintError) Error

func (e *UniqueConstraintError) Error() string

func (*UniqueConstraintError) Unwrap

func (e *UniqueConstraintError) Unwrap() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL