errors

package
v0.0.1-dev-550d77a Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BadRequest          = "bad request"
	InternalServerError = "internal server error"
)
View Source
const (
	Service = "service"
)

Variables

View Source
var (
	ServiceNotFound    = errors.New("service not found")
	TuningNotFound     = errors.New("tuning parameter not found")
	TuningValueInvalid = errors.New("tuning value is invalid")
	LicensesNotFound   = errors.New("licenses not found")

	DataCenterIsNotReady  = errors.New("data center is not set ready")
	DataCenterIsRepairing = errors.New("data center is repairing")

	EmailSenderHostInvalid = errors.New("email sender host is invalid")
	EmailSenderPortInvalid = errors.New("email sender port is invalid")

	LicenseAlreadyExpired     = errors.New("license is already expired")
	LicenseNotInstalled       = errors.New("license is not installed")
	LicenseInvalidHardware    = errors.New("license's hardware serial is not matched with the current system")
	LicenseInvalidSignature   = errors.New("license's signature is invalid")
	LicenseSysytemCompromised = errors.New("license system is compromised")

	SdkExecutionError  = errors.New("sdk execution error")
	UnknownSettingType = errors.New("unknown setting type")

	InvalidListenAddress  = errors.New("invalid listen address")
	InvalidListenPort     = errors.New("invalid listen port")
	InvalidTimeZone       = errors.New("invalid time zone")
	InvalidNodeRole       = errors.New("invalid node role")
	InvalidHostname       = errors.New("invalid hostname")
	InvalidDataCenterName = errors.New("invalid data center name")
	InvalidManagementIp   = errors.New("invalid management ip")

	AlertSettingNotInited = errors.New("alert setting is not initialized")
)

Functions

func CombineErrors

func CombineErrors(errs []error) error

Types

type Template

type Template struct {
	Occurred bool
	Type     string
	Msg      string
	Raw      error
}

func ErrService

func ErrService(err error) Template

func (Template) Error

func (t Template) Error() string

Jump to

Keyboard shortcuts

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