fperr

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorCodeModLoadFailed    = "error_mod_load_failed"
	ErrorCodeModInstallFailed = "error_mod_install_failed"
	ErrorCodeAPIInitFailed    = "error_api_init_failed"
	ErrorCodeUnknownError     = "error_unknown_error"
	ErrorCodeResourceNotFound = "error_resource_not_found"

	ExitCodeExecutionPaused      = 1
	ExitCodeExecutionFailed      = 2
	ExitCodeExecutionCancelled   = 3
	ExitCodeExecutionDidNotStart = 9
	ExitCodeUnknownFlowpipeError = 10
)

Variables

This section is empty.

Functions

func FailOnError

func FailOnError(sourceError error, wrapWith reflect.Type, errorCode string)

func FailOnErrorWithMessage

func FailOnErrorWithMessage(sourceError error, message string, wrapWith reflect.Type, errorCode string)

func GetExitCode

func GetExitCode(err error, fromPanic bool) int

func WrapsWith

func WrapsWith(sourceError error, wrapWith reflect.Type, errorCode string) perr.ErrorModel

Types

This section is empty.

Jump to

Keyboard shortcuts

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