errors

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAlreadyExistsError

func IsAlreadyExistsError(err error) bool

func IsNotFoundError

func IsNotFoundError(err error) bool

func NewNotFoundError

func NewNotFoundError(name string) error

func NewRowNotFoundError

func NewRowNotFoundError() error

Types

type AlreadyExistsError

type AlreadyExistsError struct {
	Name string
}

AlreadyExistsError is returned when to create a table, an index or a sequence with a name that is already used by another resource.

func (AlreadyExistsError) Error

func (a AlreadyExistsError) Error() string

type NotFoundError

type NotFoundError struct {
	Name string
}

NotFoundError is returned when the requested table, index or sequence doesn't exist.

func (NotFoundError) Error

func (a NotFoundError) Error() string

Jump to

Keyboard shortcuts

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