transerr

package
v0.0.0-...-977ec7f Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: Apache-2.0 Imports: 0 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetErrorInfo

func GetErrorInfo(c ErrorCode) string

Types

type ErrorCode

type ErrorCode string
const (
	Success                    ErrorCode = "E0000000000"
	InvalidRequest             ErrorCode = "E0000000400"
	UnAuthorizedResource       ErrorCode = "E0000000403"
	NotFound                   ErrorCode = "E0000000404"
	BodyTooLarge               ErrorCode = "E0000000413"
	ServerError                ErrorCode = "E0000000500"
	ServerUnavailable          ErrorCode = "E0000000503"
	UnknownError               ErrorCode = "E0000000520"
	SystemIncompatible         ErrorCode = "E0000000600"
	RequestTimeout             ErrorCode = "E0000000601"
	NoServerInstance           ErrorCode = "E0000000602"
	InvalidCertificate         ErrorCode = "E0000000603"
	DomainAuthorizationTimeout ErrorCode = "E0000000604"
	DomainNetworkTimeout       ErrorCode = "E0000000605"
	PeerDisableNetwork         ErrorCode = "E0000000606"
	NetworkUnreachable         ErrorCode = "E0000000607"
	SessionReleased            ErrorCode = "E0000000608"
	UnAuthorizedInterface      ErrorCode = "E0000000614"
	InvalidSignature           ErrorCode = "E0000000615"
	CodecError                 ErrorCode = "E0000000616"
	DownStreamUnExist          ErrorCode = "E0000000617"
	DomainNotInNetwork         ErrorCode = "E0000000618"
	AddressUnreachable         ErrorCode = "E0000000619"
	BufferOverflow             ErrorCode = "E0000000700"
)

type TransError

type TransError struct {
	// contains filtered or unexported fields
}

func NewTransError

func NewTransError(c ErrorCode) *TransError

func (*TransError) Error

func (err *TransError) Error() string

func (*TransError) ErrorInfo

func (err *TransError) ErrorInfo() string

Jump to

Keyboard shortcuts

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