errors

package
v1.0.54 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 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 added in v0.1.2

func GetInvalidEntityError(entityType common.Entity) error

func GetInvalidEntityRelationshipError added in v0.1.2

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

func GetMissingEntityError

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

func GetUnsupportedFilterExpressionErr added in v0.1.2

func GetUnsupportedFilterExpressionErr(operator common.ComparisonOperator) error

Types

type ConnectError added in v0.3.7

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