errors

package
v0.0.0-...-8ca89dd Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package errors defines internal service errors

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Is

func Is(err error, target interface{}) bool

func IsConflict

func IsConflict(err error) bool

IsConflict returns if the given error or child errors are NotFound

func IsNotFound

func IsNotFound(err error) bool

IsNotFound returns if the given error or child errors are NotFound

func IsWrongInput

func IsWrongInput(err error) bool

IsWrongInput returns if the given error or child errors are WrongInputType

func NewConflict

func NewConflict(format string, args ...interface{}) *conflict

NewConflict returns an error that satisfies IsConflict()

func WrapConflict

func WrapConflict(err error, format string, args ...interface{}) *conflict

WrapConflict returns an error which wraps err that satisfies IsConflict()

func WrapNotFound

func WrapNotFound(err error, format string, args ...interface{}) *notFound

WrapNotFound returns an error which wraps err that satisfies IsNotFound()

func WrapWrongInput

func WrapWrongInput(err error, format string, args ...interface{}) *wrongInput

WrapWrongInput returns an error which wraps err that satisfies IsWrongInput()

Types

This section is empty.

Jump to

Keyboard shortcuts

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