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.
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 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 ¶
MissingDependencies is a struct containing a map of string lists, it is intended to hold information about missing dependencies. The key is a resource type, or a provider as a string, and the list is a list of keys or items that are missing.
func (*MissingDependencies) Error ¶
func (e *MissingDependencies) Error() string