errors

package
v0.0.0-...-1a5deed Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrCodeDatabaseError is thrown when there's an error with the database
	ErrCodeDatabaseError = stacktrace.ErrorCode(1)

	// ErrCodeEntityNotFound is thrown when there's is no entity in the database
	ErrCodeEntityNotFound = stacktrace.ErrorCode(2)

	// ErrCodeCannotDecodeIDFromString is thrown when the ID cannot be decoded from a string
	ErrCodeCannotDecodeIDFromString = stacktrace.ErrorCode(3)

	// ErrCodeCannotDecodeIDFromInterface is thrown when the ID cannot be decoded from a string
	ErrCodeCannotDecodeIDFromInterface = stacktrace.ErrorCode(4)

	// ErrCodeDatabaseHydrationError is thrown when there is an error when hydrating the database
	ErrCodeDatabaseHydrationError = stacktrace.ErrorCode(5)

	// ErrCodeInvalidRawRecordSource when the raw record source is invalid
	ErrCodeInvalidRawRecordSource = stacktrace.ErrorCode(6)
)
View Source
var (
	// ErrEntityNotFound is returned when an entity does not exist in the database
	ErrEntityNotFound = stacktrace.NewErrorWithCode(ErrCodeEntityNotFound, "entity not found")

	// ErrCannotDecodeIDFromString is thrown when the ID cannot be decoded from a string
	ErrCannotDecodeIDFromString = stacktrace.NewErrorWithCode(ErrCodeCannotDecodeIDFromString, "cannot decode uuid from string")

	// ErrCannotDecodeIDFromInterface is thrown when the ID cannot be decoded from a string
	ErrCannotDecodeIDFromInterface = stacktrace.NewErrorWithCode(ErrCodeCannotDecodeIDFromInterface, "cannot decode uuid from interface")

	// ErrInvalidRawRecordSource is thrown when the raw record source is invalid
	ErrInvalidRawRecordSource = stacktrace.NewErrorWithCode(ErrCodeInvalidRawRecordSource, "raw record source is invalid")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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