kubernetes/cmd/kubeadm/app/util/error.go

const DefaultErrorExitCode

const PreFlightExitCode

const ValidationExitCode

var ErrExit

// fatal prints the message if set and then exits.
func fatal(msg string, code int) {}

// CheckErr prints a user friendly error to STDERR and exits with a non-zero
// exit code. Unrecognized errors will be printed with an "error: " prefix.
//
// This method is generic to the command in use and may be used by non-Kubectl
// commands.
func CheckErr(err error) {}

type preflightError

// checkErr formats a given error as a string and calls the passed handleErr
// func with that string and an exit code.
func checkErr(err error, handleErr func(string, int)) {}

// FormatErrMsg returns a human-readable string describing the slice of errors passed to the function
func FormatErrMsg(errs []error) string {}