Documentation
¶
Overview ¶
Package cfnerr defines a custom error type used by the RPDK Go plugin.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BatchedErrors ¶
BatchedErrors is a batch of errors which also wraps lower level errors with code, message, and original errors. Calling Error() will include all errors that occurred in the batch.
func NewBatchError ¶
func NewBatchError(code string, message string, origErrs []error) BatchedErrors
NewBatchError groups one or more errors together for processing
type Error ¶
type Error interface {
// inherit the base error interface
error
// Returns an error code
Code() string
// Returns the error message
Message() string
// Returns the original error
OrigErr() error
}
An Error wraps lower level errors with code, message and an original error. The underlying concrete error type may also satisfy other interfaces which can be to used to obtain more specific information about the error.
Calling Error() or String() will always include the full information about an error based on its underlying type.
Click to show internal directories.
Click to hide internal directories.