Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRootStack ¶
GetRootStack will recurse through an error until it finds one with a stack string set.
func HandleError ¶
HandleError handles certain ClowdError types differently than normal errors.
func LogError ¶
func LogError(ctx context.Context, err *ClowderError)
LogError logs an error using the given contexts logger and a string.
Types ¶
type ClowderError ¶
ClowderError is a Clowder specific error, it has a number of functions attached to it to allow for creation and checking.
func NewClowderError ¶ added in v0.53.0
func NewClowderError(msg string) *ClowderError
NewClowderError constructs a new ClowderError object.
func Wrap ¶
func Wrap(msg string, err error) *ClowderError
Wrap takes an existing error an wraps it, returning a ClowderError
func (*ClowderError) Error ¶
func (a *ClowderError) Error() string
func (*ClowderError) Is ¶
func (a *ClowderError) Is(target error) bool
Is checks that a target is the same as a given error, that is, it has the same message and cause.
func (*ClowderError) Unwrap ¶
func (a *ClowderError) Unwrap() error
type MissingDependencies ¶
type MissingDependencies struct {
MissingDeps []MissingDependency
}
MissingDependencies is a struct that holds a list of MissingDependency structs
func MakeMissingDependencies ¶ added in v0.50.0
func MakeMissingDependencies(missingDep MissingDependency) MissingDependencies
func (*MissingDependencies) Error ¶
func (e *MissingDependencies) Error() string
Error returns a string representation of the missing dependencies
type MissingDependency ¶ added in v0.50.0
MissingDependency is a struct that holds information about a missing dependency
func (*MissingDependency) ToString ¶ added in v0.50.0
func (m *MissingDependency) ToString() string
ToString returns a string representation of the missing dependency