Documentation ¶
Index ¶
- func IsAlreadyExists(err error) bool
- func IsEventAlreadyInTerminalStateError(err error) bool
- func IsEventIncompatibleClusterError(err error) bool
- func IsInvalidArguments(err error) bool
- func IsNotFound(err error) bool
- func IsResourceExhausted(err error) bool
- func IsTooLarge(err error) bool
- func WrapError(err error) error
- type ErrorCode
- type EventError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAlreadyExists ¶
Checks if the error is of type EventError and the ErrorCode is of type AlreadyExists
func IsEventAlreadyInTerminalStateError ¶
Checks if the error is of type EventError and the ErrorCode is of type EventAlreadyInTerminalStateError
func IsEventIncompatibleClusterError ¶
IsEventIncompatibleClusterError checks if the error is of type EventError and the ErrorCode is of type EventIncompatibleCusterError
func IsInvalidArguments ¶
Checks if the error is of type EventError and the ErrorCode is of type InvalidArgument
func IsNotFound ¶
Checks if the error is of type EventError and the ErrorCode is of type ExecutionNotFound
func IsResourceExhausted ¶
Checks if the error is of type EventError and the ErrorCode is of type ResourceExhausted
func IsTooLarge ¶
Checks if the error is of type EventError and the ErrorCode is of type TooLarge
Types ¶
type ErrorCode ¶
type ErrorCode string
const ( AlreadyExists ErrorCode = "AlreadyExists" ExecutionNotFound ErrorCode = "ExecutionNotFound" ResourceExhausted ErrorCode = "ResourceExhausted" InvalidArgument ErrorCode = "InvalidArgument" TooLarge ErrorCode = "TooLarge" EventSinkError ErrorCode = "EventSinkError" EventAlreadyInTerminalStateError ErrorCode = "EventAlreadyInTerminalStateError" EventIncompatibleCusterError ErrorCode = "EventIncompatibleClusterError" )
type EventError ¶
func (EventError) Error ¶
func (r EventError) Error() string
func (*EventError) Is ¶
func (r *EventError) Is(target error) bool
func (*EventError) Unwrap ¶
func (r *EventError) Unwrap() error