service

package
v0.0.0-...-5002bb7 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadRequest      = errors.New("bad request")
	ErrInternalFailure = errors.New("internal failure")
	ErrNotFound        = errors.New("not found")
)

Generic errors that can be returned from services

Functions

This section is empty.

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

Error is a custom error type that combines application and service errors

func NewError

func NewError(svcErr, appErr error) Error

NewError creates a new Error

func (Error) AppError

func (e Error) AppError() error

func (Error) Error

func (e Error) Error() string

Error returns the combined error message

func (Error) SvcError

func (e Error) SvcError() error

Jump to

Keyboard shortcuts

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