dberr

package
v0.0.0-...-73beed4 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 2 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

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