stderror

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: GPL-3.0 Imports: 2 Imported by: 5

Documentation

Index

Constants

View Source
const (
	ClientConfigIsEmpty                     = "mieru client config is empty"
	ClientConfigNotExist                    = "mieru client config file doesn't exist"
	ClientGetActiveProfileFailedErr         = "mieru client get active profile failed: %w"
	ClientNotRunning                        = "mieru client is not running"
	ClientNotRunningErr                     = "mieru client is not running: %w"
	CreateClientLifecycleRPCClientFailedErr = "create mieru client lifecycle RPC client failed: %w"
	CreateEmptyServerConfigFailedErr        = "create empty mieru server config file failed: %w"
	CreateServerConfigRPCClientFailedErr    = "create mieru server config RPC client failed: %w"
	CreateServerLifecycleRPCClientFailedErr = "create mieru server lifecycle RPC client failed: %w"
	CreateSocks5ServerFailedErr             = "create socks5 server failed: %w"
	DecodeHashedPasswordFailedErr           = "decode hashed password failed: %w"
	ExitFailedErr                           = "process exit failed: %w"
	GetClientConfigFailedErr                = "get mieru client config failed: %w"
	GetServerConfigFailedErr                = "get mieru server config failed: %w"
	GetServerStatusFailedErr                = "get mieru server status failed: %w"
	GetThreadDumpFailedErr                  = "get thread-dump failed: %w"
	LoadClientConfigFailedErr               = "load mieru client config failed: %w"
	LoadServerConfigFailedErr               = "load mieru server config failed: %w"
	ServerNotRunning                        = "mieru server daemon is not running"
	ServerNotRunningErr                     = "mieru server daemon is not running: %w"
	ServerProxyNotRunningErr                = "mieru server proxy is not running: %w"
	SetServerConfigFailedErr                = "set mieru server config failed: %w"
	StartClientFailedErr                    = "start mieru client failed: %w"
	StartServerProxyFailedErr               = "start mieru server proxy failed: %w"
	StopServerProxyFailedErr                = "stop mieru server proxy failed: %w"
	StoreClientConfigFailedErr              = "store mieru client config failed: %w"
	ValidateFullClientConfigFailedErr       = "validate full client config failed: %w"
	ValidateServerConfigPatchFailedErr      = "validate server config patch failed: %w"
)

Variables

View Source
var (
	ErrAlreadyExist     = fmt.Errorf("ALREADY EXIST")
	ErrFileNotExist     = fmt.Errorf("FILE NOT EXIST")
	ErrIDNotMatch       = fmt.Errorf("ID NOT MATCH")
	ErrInternal         = fmt.Errorf("INTERNAL")
	ErrInvalidArgument  = fmt.Errorf("INVALID ARGUMENT")
	ErrInvalidOperation = fmt.Errorf("INVALID OPERATION")
	ErrNoEnoughData     = fmt.Errorf("NO ENOUGH DATA")
	ErrNotFound         = fmt.Errorf("NOT FOUND")
	ErrNotRunning       = fmt.Errorf("NOT RUNNING")
	ErrOutOfRange       = fmt.Errorf("OUT OF RANGE")
	ErrTimeout          = fmt.Errorf("TIMEOUT")
	ErrUnknownCommand   = fmt.Errorf("UNKNOWN COMMAND")
)

Functions

func IsConnRefused

func IsConnRefused(err error) bool

IsConnRefused returns true if the cause of error is connection refused.

func IsPermissionDenied

func IsPermissionDenied(err error) bool

IsPermissionDenied returns true if the cause of error is permission denied.

Types

This section is empty.

Jump to

Keyboard shortcuts

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