taskerrors

package
v0.0.0-...-feb2835 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommanderError

type CommanderError struct {
	Code    string
	SubCode string
	Message string
}

func NewAttachProcessFailedError

func NewAttachProcessFailedError(message ...string) *CommanderError

func NewClientNotCreatedError

func NewClientNotCreatedError(message ...string) *CommanderError

func NewCommanderError

func NewCommanderError(code, subcode, message string) *CommanderError

func NewCommanderExitError

func NewCommanderExitError(message ...string) *CommanderError

func NewCreateClientFailedError

func NewCreateClientFailedError(message ...string) *CommanderError

func NewIpcRequestFailedError

func NewIpcRequestFailedError(message ...string) *CommanderError

func NewLoadCommanderFailedError

func NewLoadCommanderFailedError(message ...string) *CommanderError

func NewStartProcessFailedError

func NewStartProcessFailedError(message ...string) *CommanderError

func NewStatusUpdateTimeoutError

func NewStatusUpdateTimeoutError(message ...string) *CommanderError

func (*CommanderError) Error

func (e *CommanderError) Error() string

func (*CommanderError) SubMessage

func (e *CommanderError) SubMessage() string

type ErrorCode

type ErrorCode int

ErrorCode defines and MUST contain all error codes that will be reported as failure

const (
	WrapErrBase64DecodeFailed ErrorCode

	WrapErrExecuteScriptFailed

	WrapErrResolveEnvironmentParameterFailed

	WrapGeneralError

	WrapErrCreatePipeFailed // Deprecated, replaced by WrapErrInitOutputBufFailed
	WrapErrCreateProcessCollectionFailed
	WrapCommanderError

	WrapErrServerResponseError // Backend server Response errorCode for api task/xxx
	WrapErrInitOutputBufFailed
)

func (ErrorCode) String

func (c ErrorCode) String() string

type ExecutionError

type ExecutionError interface {
	error

	ErrCode() ErrorCode
}

func NewCreateProcessCollectionError

func NewCreateProcessCollectionError(cause error) ExecutionError

func NewExecuteScriptError

func NewExecuteScriptError(cause error) ExecutionError

func NewGetScriptPathError

func NewGetScriptPathError(cause error) ExecutionError

func NewInitOutputBufError

func NewInitOutputBufError(cause error) ExecutionError

func NewLauncherNotFoundError

func NewLauncherNotFoundError(cause error) ExecutionError

func NewNoEnoughSpaceError

func NewNoEnoughSpaceError(cause error) ExecutionError

func NewPluginLoadFailedError

func NewPluginLoadFailedError(cause error) ExecutionError

func NewPowershellNotFoundError

func NewPowershellNotFoundError(cause error) ExecutionError

func NewResolvingInstanceNameError

func NewResolvingInstanceNameError(cause error) ExecutionError

func NewSaveScriptFileError

func NewSaveScriptFileError(cause error) ExecutionError

func NewScriptFileExistedError

func NewScriptFileExistedError(savePath string, cause error) ExecutionError

func NewServerResponseError

func NewServerResponseError(cause error) ExecutionError

func NewSetExecutablePermissionError

func NewSetExecutablePermissionError(cause error) ExecutionError

func NewSetWindowsPermissionError

func NewSetWindowsPermissionError(cause error) ExecutionError

func NewSystemDefaultShellNotFoundError

func NewSystemDefaultShellNotFoundError(cause error) ExecutionError

func NewUnknownCommandTypeError

func NewUnknownCommandTypeError() ExecutionError

type InvalidSettingError

type InvalidSettingError interface {
	error

	Name() string
	ShortMessage() string
	Unwrap() error
}

func NewDefaultWorkingDirectoryNotAvailableError

func NewDefaultWorkingDirectoryNotAvailableError(message string) InvalidSettingError

func NewHomeDirectoryNotAvailableError

func NewHomeDirectoryNotAvailableError(cause error) InvalidSettingError

func NewInvalidEnvironmentParameterError

func NewInvalidEnvironmentParameterError(message string) InvalidSettingError

func NewInvalidUsernameOrPasswordError

func NewInvalidUsernameOrPasswordError(cause error, shortMessage string) InvalidSettingError

func NewWorkingDirectoryNotExistError

func NewWorkingDirectoryNotExistError(workingDir string) InvalidSettingError

type NoEnoughSpaceError

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

func (*NoEnoughSpaceError) ErrCode

func (e *NoEnoughSpaceError) ErrCode() ErrorCode

func (*NoEnoughSpaceError) Error

func (e *NoEnoughSpaceError) Error() string

type NormalizedExecutionError

type NormalizedExecutionError interface {
	error

	Code() string
	Description() string
}

func NormalizeExecutionError

func NormalizeExecutionError(code string, cause error) NormalizedExecutionError

type NormalizedValidationError

type NormalizedValidationError interface {
	error

	Param() string
	Value() string
}

func NormalizeValidationError

func NormalizeValidationError(category string, cause error) NormalizedValidationError

type Stringer

type Stringer string

func (Stringer) String

func (s Stringer) String() string

Jump to

Keyboard shortcuts

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