usecase

package
v0.0.0-...-c31d802 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InvalidRequestErrorType   = "invalid_request_error"
	NotFoundErrorType         = "not_found_error"
	InvalidDataStateErrorType = "invalid_data_state"
	UpdateFailureErrorType    = "update_failure_error"
	ServerErrorType           = "server_error"
)
View Source
const (
	InvalidRequestErrorStatus   = 400
	NotFoundErrorStatus         = 404
	InvalidDataStateErrorStatus = 409
	UpdateFailureErrorStatus    = 500
	ServerErrorStatus           = 500
)

Variables

This section is empty.

Functions

func ErrorMessage

func ErrorMessage(err error) string

func ErrorStatus

func ErrorStatus(err error) int

func ErrorType

func ErrorType(err error) string

func NewInvalidDataStateError

func NewInvalidDataStateError(message string) error

func NewInvalidRequestError

func NewInvalidRequestError(message string) error

func NewNotFoundError

func NewNotFoundError(message string) error

func NewServerError

func NewServerError(message string) error

func NewUpdateFailureError

func NewUpdateFailureError(message string) error

Types

This section is empty.

Directories

Path Synopsis
outputport
dto

Jump to

Keyboard shortcuts

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