package errdefs
import "github.com/compose-spec/compose-go/errdefs"
Index ¶
- Variables
- func IsIncompatibleError(err error) bool
- func IsInvalidError(err error) bool
- func IsNotFoundError(err error) bool
- func IsUnsupportedError(err error) bool
Variables ¶
var ( // ErrNotFound is returned when an object is not found ErrNotFound = errors.New("not found") // ErrInvalid is returned when a compose project is invalid ErrInvalid = errors.New("invalid compose project") // ErrUnsupported is returned when a compose project uses an unsupported attribute ErrUnsupported = errors.New("unsupported attribute") // ErrIncompatible is returned when a compose project uses an incompatible attribute ErrIncompatible = errors.New("incompatible attribute") )
Functions ¶
func IsIncompatibleError ¶
IsUnsupportedError returns true if the unwrapped error is ErrIncompatible
func IsInvalidError ¶
IsInvalidError returns true if the unwrapped error is ErrInvalid
func IsNotFoundError ¶
IsNotFoundError returns true if the unwrapped error is ErrNotFound
func IsUnsupportedError ¶
IsUnsupportedError returns true if the unwrapped error is ErrUnsupported
Source Files ¶
- Version
- v1.20.2 (latest)
- Published
- Nov 21, 2023
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 1 day ago –
Tools for package owners.