package
0.35.0
Repository: https://github.com/spotinst/spotctl.git
Documentation: pkg.go.dev

# Functions

Internal generates an instance representing an error that occurs when an internal error is thrown during the command execution.
Invalid generates an instance representing an error that occurs when a string parameter is set a malformed value (e.g.
NewError generates a custom error.
NewErrorGroup returns a new error group.
Noninteractive generates an instance representing an error that occurs when a command cannot run in non-interactive mode.
NotImplemented generates an instance representing an error that occurs when an unimplemented method is called.
Range generates an instance representing an error that occurs when a numeric parameter is outside of its valid range.
Required generates an instance representing an error that occurs when a required parameter is missing.
RequiredAnd generates an instance representing an error that occurs when all parameters must appear together.
RequiredOr generates an instance representing an error that occurs when at least one parameter must appear.
RequiredXor generates an instance representing an error that occurs when exclusive parameters must not appear together but where one of them is required.

# Constants

ErrorTypeInternal is used to represent an error that occurs when an internal error is thrown during the command execution.
ErrorTypeInvalid is used to represent an error that occurs when a string parameter is set a malformed value (e.g.
ErrorTypeNotImplemented is used to represent an error that occurs when an unimplemented method is called.
ErrorTypeRange is used to represent an error that occurs when a numeric parameter is outside of its valid range.
ErrorTypeRequired is used to represent an error that occurs when a required parameter is missing.

# Structs

Error provides a way to return detailed information for an error.
ErrorGroup is an error type to track multiple errors.

# Type aliases

ErrorType represents the type of an error.