{"modulePath":"github.com/Diaphteiros/kw/pluginlib","version":"v1.3.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Functions\n\n```go\nfunc IgnoreStateFromAnotherPluginError(err error) error\n```\nIgnoreStateFromAnotherPluginError returns nil if the given error is a StateFromAnotherPluginError and the error itself otherwise.\n\n```go\nfunc IsStateFromAnotherPluginError(err error) bool\n```\nIsStateFromAnotherPluginError returns true if the given error either is or wraps a StateFromAnotherPluginError.\n\n```go\nfunc NewStateFromAnotherPluginError(expected string, actual string) error\n```\nNewStateFromAnotherPluginError can be use to create an error indicating that the plugin state is from another plugin than expected.\n\n## Types\n\n```go\ntype StateFromAnotherPluginError struct {\n\tExpected string\n\tActual   string\n}\n```\n\n```go\nfunc ToStateFromAnotherPluginError(err error) (*StateFromAnotherPluginError, bool)\n```\nToStateFromAnotherPluginError 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.\n\n```go\nfunc (e *StateFromAnotherPluginError) Error() string\n```\n\n","path":"github.com/Diaphteiros/kw/pluginlib/pkg/errors","name":"errors","synopsis":"","isRedistributable":true}
