errors

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Generic errors used in the repos layer

Index

Constants

View Source
const (
	AlreadyExists = "entity already exists"
)

Variables

This section is empty.

Functions

func GetInvalidEntityError

func GetInvalidEntityError(entityType common.Entity) error

func GetInvalidEntityRelationshipError

func GetInvalidEntityRelationshipError(entityType common.Entity, otherEntityType common.Entity) error

func GetMissingEntityError

func GetMissingEntityError(entityType string, identifier proto.Message) error

func GetUnsupportedFilterExpressionErr

func GetUnsupportedFilterExpressionErr(operator common.ComparisonOperator) error

Types

type ConnectError

type ConnectError interface {
	Unwrap() error
	Error() string
}

type ErrorTransformer

type ErrorTransformer interface {
	ToDataCatalogError(err error) error
}

Defines the basic error transformer interface that all database types must implement.

func NewPostgresErrorTransformer

func NewPostgresErrorTransformer() ErrorTransformer

Jump to

Keyboard shortcuts

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