errors

package
v1.9.14 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 10 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