alreadyexistserror

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Is

func Is(err error) bool

func New

func New(ctx context.Context, details string) error

Types

type AlreadyExistsError

type AlreadyExistsError interface {
	Ctx() context.Context
	IsAlreadyExists() bool
}

AlreadyExistsError is raised when a concurrent update is detected.

type Impl

type Impl struct {
	// contains filtered or unexported fields
}

func (*Impl) Ctx

func (e *Impl) Ctx() context.Context

func (*Impl) Error

func (e *Impl) Error() string

func (*Impl) IsAlreadyExists

func (e *Impl) IsAlreadyExists() bool

Jump to

Keyboard shortcuts

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