errorx

package
v0.0.0-...-2482490 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrCode

type ErrCode uint64
const (
	ErrCodeSuccessful ErrCode = errCodeBase + iota
	ErrCodeSSHConnectionFailed
	ErrCodeSSHConnectionThreeLimit
)

func (ErrCode) Error

func (e ErrCode) Error() string

func (ErrCode) SetReason

func (e ErrCode) SetReason(r string) error

type Status

type Status struct {
	Code    uint64 `json:"Code,omitempty"`
	Reason  string `json:"reason,omitempty"`
	Message string `json:"message,omitempty"`
}

Jump to

Keyboard shortcuts

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