errors

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const ExitError = 1

ExitError represents general error exit code

View Source
const ExitTimedOut = 124

ExitTimedOut represents timed out error exit code

View Source
const TimedOutErrorMessage = "Timed Out"

TimedOutErrorMessage represents timed out error message

Variables

This section is empty.

Functions

func NewCommandError

func NewCommandError(msg string) error

NewCommandError creates the general error

func NewTimedOutError

func NewTimedOutError() error

NewTimedOutError creates the timed out error

Types

type CommandError

type CommandError struct {
	Message  string
	ExitCode int
}

CommandError represents command errors

func (*CommandError) Error

func (e *CommandError) Error() string

Jump to

Keyboard shortcuts

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