errors

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DomainValidationError = &DomainError{
		Status:  http.StatusBadRequest,
		Code:    "2",
		Message: "Validation error",
	}
)
View Source
var (
	InternalServerError = fmt.Errorf("Internal Server Error")
)

Functions

This section is empty.

Types

type DomainError

type DomainError struct {
	Status  int    // http status mapping
	Code    string // domain error code
	Message string // domain error message
}

func (*DomainError) Error

func (err *DomainError) Error() string

Jump to

Keyboard shortcuts

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