errors

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNotImplementedError

func NewNotImplementedError(methodName, pluginName string) error

Constructor for NotImplementedError

Types

type CommandError added in v0.3.0

type CommandError struct {
	ExitCode    int
	CommonError string
	Result      shared.GenericLaunchesResult
}

CommandError represents an error that occurred during plugin execution, storing relevant results.

func NewCommandError added in v0.3.0

func NewCommandError(args interface{}, result interface{}, err error, code int) *CommandError

NewCommandError creates a new CommandError instance, encapsulating args, result, and the error message.

func NewCommandErrorWithResult added in v0.3.0

func NewCommandErrorWithResult(launches shared.GenericLaunchesResult, err error, code int) *CommandError

NewCommandErrorWithResult creates a new CommandError with a pre-formed GenericLaunchesResult.

func (*CommandError) Error added in v0.3.0

func (e *CommandError) Error() string

Error implements the error interface, returning the message from the common error.

type NotImplementedError

type NotImplementedError struct {
	MethodName string
	PluginName string
}

Custom error type for not implemented errors

func (*NotImplementedError) Error

func (e *NotImplementedError) Error() string

Implement the error interface for NotImplementedError

Jump to

Keyboard shortcuts

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