Documentation ¶
Overview ¶
Package errors content relative to the package
Index ¶
- Constants
- type Error
- func CommandNotFound(msg string, args ...interface{}) Error
- func IncorrectUsage(msg string, args ...interface{}) Error
- func InvalidArguments(msg string, args ...interface{}) Error
- func ThrowMissingRequiredLabel(block string) Error
- func ThrowUnsupportedArgument(block, argument string) Error
- func ThrowUnsupportedBlock(parent, child string) Error
- func Unexpected(msg string, args ...interface{}) Error
Constants ¶
View Source
const (
// MetaLocation values used to save location information of an error.
MetaLocation = "loc"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error interface { AddMeta(key string, value interface{}) Error ThroughBy(err error) Error ExitStatus() int Error() string // contains filtered or unexported methods }
Error encapsulates error info.
func CommandNotFound ¶
CommandNotFound return a command not found error.
func IncorrectUsage ¶
IncorrectUsage return an incorrect usage error.
func InvalidArguments ¶
InvalidArguments return an invalid arguments error.
func ThrowMissingRequiredLabel ¶
ThrowMissingRequiredLabel throw a missing required label error.
func ThrowUnsupportedArgument ¶
ThrowUnsupportedArgument throw an unsupported argument error.
func ThrowUnsupportedBlock ¶
ThrowUnsupportedBlock throw an unsupported block error.
func Unexpected ¶
Unexpected return an unexpectedErrCode error.
Click to show internal directories.
Click to hide internal directories.