gerror

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrRecordNotFound record not found error
	ErrRecordNotFound = gorm.ErrRecordNotFound
	// ErrInvalidTransaction invalid transaction when you are trying to `Commit` or `Rollback`
	ErrInvalidTransaction = gorm.ErrInvalidTransaction
	// ErrNotImplemented not implemented
	ErrNotImplemented = gorm.ErrNotImplemented
	// ErrMissingWhereClause missing where clause
	ErrMissingWhereClause = gorm.ErrMissingWhereClause
	// ErrUnsupportedRelation unsupported relations
	ErrUnsupportedRelation = gorm.ErrUnsupportedRelation
	// ErrPrimaryKeyRequired primary keys required
	ErrPrimaryKeyRequired = gorm.ErrPrimaryKeyRequired
	// ErrModelValueRequired model value required
	ErrModelValueRequired = gorm.ErrModelValueRequired
	// ErrModelAccessibleFieldsRequired model accessible fields required
	ErrModelAccessibleFieldsRequired = gorm.ErrModelAccessibleFieldsRequired
	// ErrSubQueryRequired sub query required
	ErrSubQueryRequired = gorm.ErrSubQueryRequired
	// ErrInvalidData unsupported data
	ErrInvalidData = gorm.ErrInvalidData
	// ErrUnsupportedDriver unsupported driver
	ErrUnsupportedDriver = gorm.ErrUnsupportedDriver
	// ErrRegistered registered
	ErrRegistered = gorm.ErrRegistered
	// ErrInvalidField invalid field
	ErrInvalidField = gorm.ErrInvalidField
	// ErrEmptySlice empty slice found
	ErrEmptySlice = gorm.ErrEmptySlice
	// ErrDryRunModeUnsupported dry run mode unsupported
	ErrDryRunModeUnsupported = gorm.ErrDryRunModeUnsupported
	// ErrInvalidDB invalid db
	ErrInvalidDB = gorm.ErrInvalidDB
	// ErrInvalidValue invalid value
	ErrInvalidValue = gorm.ErrInvalidValue
	// ErrInvalidValueOfLength invalid values do not match length
	ErrInvalidValueOfLength = gorm.ErrInvalidValueOfLength
	// ErrPreloadNotAllowed preload is not allowed when count is used
	ErrPreloadNotAllowed = gorm.ErrPreloadNotAllowed
	// ErrDuplicatedKey occurs when there is a unique key constraint violation
	ErrDuplicatedKey = gorm.ErrDuplicatedKey
)
View Source
var (
	GDALErr = errors.New("[GDAL] error")
)

Functions

func GDALErrorf

func GDALErrorf(format string, a ...any) error

func GetSelectorFromNonStructErr

func GetSelectorFromNonStructErr(rt reflect.Type) error

func GormTagShouldBeKVsErr

func GormTagShouldBeKVsErr(tag string) error

func InvalidReflectValueErr

func InvalidReflectValueErr(rv reflect.Value) error

func IsErrDryRunModeUnsupported

func IsErrDryRunModeUnsupported(err error) bool

func IsErrDuplicatedKey

func IsErrDuplicatedKey(err error) bool

func IsErrEmptySlice

func IsErrEmptySlice(err error) bool

func IsErrInvalidDB

func IsErrInvalidDB(err error) bool

func IsErrInvalidData

func IsErrInvalidData(err error) bool

func IsErrInvalidField

func IsErrInvalidField(err error) bool

func IsErrInvalidTransaction

func IsErrInvalidTransaction(err error) bool

func IsErrInvalidValue

func IsErrInvalidValue(err error) bool

func IsErrInvalidValueOfLength

func IsErrInvalidValueOfLength(err error) bool

func IsErrMissingWhereClause

func IsErrMissingWhereClause(err error) bool

func IsErrModelAccessibleFieldsRequired

func IsErrModelAccessibleFieldsRequired(err error) bool

func IsErrModelValueRequired

func IsErrModelValueRequired(err error) bool

func IsErrNotImplemented

func IsErrNotImplemented(err error) bool

func IsErrPreloadNotAllowed

func IsErrPreloadNotAllowed(err error) bool

func IsErrPrimaryKeyRequired

func IsErrPrimaryKeyRequired(err error) bool

func IsErrRecordNotFound

func IsErrRecordNotFound(err error) bool

func IsErrRegistered

func IsErrRegistered(err error) bool

func IsErrSubQueryRequired

func IsErrSubQueryRequired(err error) bool

func IsErrUnsupportedDriver

func IsErrUnsupportedDriver(err error) bool

func IsErrUnsupportedRelation

func IsErrUnsupportedRelation(err error) bool

func IsGDALErr

func IsGDALErr(err error) bool

func NonStructBasedModelErr

func NonStructBasedModelErr(rt reflect.Type) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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