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 ¶
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) Reason ¶
func (m ReasonError) Reason() string
Reason returns the reason for the error.
Click to show internal directories.
Click to hide internal directories.