errno

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	/*
		code = 0 means correct return; code > 0 represents a return with an error
		example: 20001
		2 means error occurred in business logic
		00 reserved digits
		01 the specific error code
	*/
	OK = &Errno{Code: 0, Message: "success"}

	InternalServerErr = &Errno{Code: 10001, Message: "Internal server error."}
	BindErr           = &Errno{Code: 10002, Message: "Failed to bind request data to the struct."}

	InvalidRequestParameter = &Errno{Code: 20001, Message: "Invalid URL request parameter."}
	NotSupportedCase        = &Errno{Code: 20002, Message: "Not supported case with the given request parameter"}
)

Functions

This section is empty.

Types

type Errno

type Errno struct {
	Code    int
	Message string
}

Jump to

Keyboard shortcuts

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