errors

package
v0.0.0-...-feba14f Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleError

func HandleError(err error)

HandleError logs an error message and returns an error.

func HandleErrorWithReason

func HandleErrorWithReason(err error, reason string)

HandleErrorWithReason logs an error message and returns an error.

Types

type ReasonError

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

ReasonError is a wrapper around an error that adds additional context.

func NewReasonError

func NewReasonError(err error, reason string) ReasonError

NewReasonError creates a new scriptsError.

func (ReasonError) Error

func (m ReasonError) Error() string

Error returns the error message.

func (ReasonError) Reason

func (m ReasonError) Reason() string

Reason returns the reason for the error.

Jump to

Keyboard shortcuts

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