dberr

package
v0.0.0-...-1ac2cc1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package dberr GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTypeNotFound   errType = "NotFound"
	ErrTypeConflict   errType = "Conflict"
	ErrTypeRolledBack errType = "RolledBack"
)

Functions

func IsErrConflict

func IsErrConflict(err error) bool

func IsErrNotFound

func IsErrNotFound(err error) bool

func IsErrRolledBack

func IsErrRolledBack(err error) bool

func UnwrapAll

func UnwrapAll(err error) error

func UnwrapOnce

func UnwrapOnce(err error) (cause error)

Types

type SqlError

type SqlError struct {
	Type errType
	Msg  string
}

func New

func New(tpe errType, msg string) *SqlError

func (*SqlError) Error

func (e *SqlError) Error() string

func (SqlError) RuntimeDoc

func (v SqlError) RuntimeDoc(names ...string) ([]string, bool)

Jump to

Keyboard shortcuts

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