Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TryUpdateError ¶
func TryUpdateError(lastErr *lssv1alpha1.Error, err error) *lssv1alpha1.Error
TryUpdateError tries to update the properties of the last error if the err is an internal landscaper services error.
func UpdatedError ¶
func UpdatedError(lastError *lssv1alpha1.Error, operation, reason, message string) *lssv1alpha1.Error
UpdatedError updates the properties of an error.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error is a wrapper around the landscaper service crd error that implements the go error interface.
func IsError ¶
IsError returns the innermost landscaper service error if the given error is one. If the err does not contain a landscaper service error, nil is returned.
func NewWrappedError ¶
NewWrappedError creates a new landscaper service internal error that wraps another error
func (*Error) LandscaperServiceError ¶
func (e *Error) LandscaperServiceError() *lssv1alpha1.Error
LandscaperServiceError returns the wrapped landscaper error.
func (Error) UpdatedError ¶
func (e Error) UpdatedError(lastError *lssv1alpha1.Error) *lssv1alpha1.Error
UpdatedError updates the properties of an existing error.
Click to show internal directories.
Click to hide internal directories.