Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIErrIs ¶ added in v0.4.0
APIErrIs attempts to coerce err into an UnexpectedResponseError to check its status code. Failing that, it will look for str in the error string. If code==0 it will be ignored, same for str==""
func FormattedMultiError ¶
func FormattedMultiError(err *multierror.Error) error
FormattedMultiError wraps any non-nil multierrors with the multiErrorFunc. It is safe to call in cases where the err may or may not be nil and will overwrite the existing formatter.
func MultiErrorFunc ¶
MultiErrorFunc is a helper to convert the standard multierror output into something a little more friendly to consoles.
Types ¶
type StatusCoder ¶ added in v0.4.0
StatusCoder is an error with an extra StatusCode method. mainly, nomad api.UnexpectedResponseError implements this.
Click to show internal directories.
Click to hide internal directories.