Documentation ¶
Overview ¶
Generic errors used in the repos layer
Index ¶
- Constants
- func GetInvalidEntityError(entityType common.Entity) error
- func GetInvalidEntityRelationshipError(entityType common.Entity, otherEntityType common.Entity) error
- func GetMissingEntityError(entityType string, identifier proto.Message) error
- func GetUnsupportedFilterExpressionErr(operator common.ComparisonOperator) error
- type ConnectError
- type ErrorTransformer
Constants ¶
View Source
const (
AlreadyExists = "entity already exists"
)
Variables ¶
This section is empty.
Functions ¶
func GetInvalidEntityError ¶
func GetMissingEntityError ¶
func GetUnsupportedFilterExpressionErr ¶
func GetUnsupportedFilterExpressionErr(operator common.ComparisonOperator) error
Types ¶
type ConnectError ¶
type ErrorTransformer ¶
Defines the basic error transformer interface that all database types must implement.
func NewPostgresErrorTransformer ¶
func NewPostgresErrorTransformer() ErrorTransformer
Click to show internal directories.
Click to hide internal directories.