apperror

package
v0.0.0-...-28a6299 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MySQLErrorCode

func MySQLErrorCode(err error) error

func NewError

func NewError(errorType ErrorType, msg string) error

Types

type ErrorType

type ErrorType string
const (
	AlreadyExists    ErrorType = "AlreadyExists"
	NotFound         ErrorType = "NotFound"
	Internal         ErrorType = "Internal"
	InvalidArguments ErrorType = "InvalidArguments"
)

type RequestError

type RequestError struct {
	Type ErrorType
	Msg  string
}

func (*RequestError) Error

func (r *RequestError) Error() string

Jump to

Keyboard shortcuts

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