errors

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Generic errors used in the repos layer

Index

Constants

This section is empty.

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 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