errors

package
v0.0.0-...-301c48b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2016 License: BSD-3-Clause, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildError

func BuildError(httperr error, apierr *APIError) error

BuildError returns any non-nil http-related error (creating the request, getting the response, decoding) if any. If the decoded apierr is non-zero the apierr is returned. Otherwise, no errors occurred, returns nil.

Types

type APIError

type APIError struct {
	Errors []string `json:"__all__,omitempty"`
	Detail string   `json:"detail,omitempty"`
}

An APIError reports the error caused by an API request

func (APIError) Error

func (e APIError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL