Documentation ¶
Index ¶
- Constants
- func Code(err error) string
- func ConfigNotFound(msg string) error
- func CorruptedRepositorySpec(rootURL string, specPath string, err error) error
- func DoesNotExist(msg string) error
- func IncompatibleRepositoryVersion(rootURL string) error
- func IsConfigNotFound(err error) bool
- func IsDoesNotExist(err error) bool
- func ReadError(msg string) error
- func RepositoryConfigurationError(msg string) error
- func WriteError(msg string) error
- type CodedError
Constants ¶
View Source
const ( CodeDoesNotExist = "DOES_NOT_EXIST" CodeReadError = "READ_ERROR" CodeWriteError = "WRITE_ERROR" CodeRepositoryConfigurationError = "REPOSITORY_CONFIGURATION_ERROR" CodeIncompatibleRepositoryVersion = "INCOMPATIBLE_REPOSITORY_VERSION" CodeCorruptedRepositorySpec = "CORRUPTED_REPOSITORY_SPEC" CodeConfigNotFound = "CONFIG_NOT_FOUND" )
Variables ¶
This section is empty.
Functions ¶
func ConfigNotFound ¶
func CorruptedRepositorySpec ¶
func DoesNotExist ¶
func IsConfigNotFound ¶
func IsDoesNotExist ¶
func WriteError ¶
Types ¶
type CodedError ¶
type CodedError interface {
Code() string
}
TODO: support wrapping https://blog.golang.org/go1.13-errors
Click to show internal directories.
Click to hide internal directories.