Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IgnoreStateFromAnotherPluginError ¶
IgnoreStateFromAnotherPluginError returns nil if the given error is a StateFromAnotherPluginError and the error itself otherwise.
func IsStateFromAnotherPluginError ¶
IsStateFromAnotherPluginError returns true if the given error either is or wraps a StateFromAnotherPluginError.
func NewStateFromAnotherPluginError ¶
NewStateFromAnotherPluginError can be use to create an error indicating that the plugin state is from another plugin than expected.
Types ¶
type StateFromAnotherPluginError ¶
func ToStateFromAnotherPluginError ¶
func ToStateFromAnotherPluginError(err error) (*StateFromAnotherPluginError, bool)
ToStateFromAnotherPluginError tries to parse the given error or any error wrapped by it as a StateFromAnotherPluginError. Returns the first StateFromAnotherPluginError found and true if such an error is found, nil and false otherwise.
func (*StateFromAnotherPluginError) Error ¶
func (e *StateFromAnotherPluginError) Error() string
Click to show internal directories.
Click to hide internal directories.