errors

package
v0.0.0-...-87eabf6 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: NCSA Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrHTTPStatus = errors.NewError("HTTP status code returned that was not acceptable")

ErrHTTPStatus is returned whenever the client has determined that the code is not acceptable for the current request or client state.

View Source
var ErrInvalidFormatRequested = errors.NewError("invalid format requested")

ErrInvalidFormatRequested is returned if an invalid format was requested for the encoder. Presently, only JSON and CSV output is supported, and any other type will result in this error.

View Source
var ErrInvalidStateFile = errors.NewError("no state file or invalid file was found")

ErrInvalidStateFile is returned by the state handler during load and parse if no state file was found or the state file itself was corrupted.

View Source
var ErrLoginFailed = errors.NewError("login failed")

ErrLoginFailed is returned if an attempt to login via the Gab user authorization endpoint fails.

View Source
var ErrNonsense = errors.NewError("nonsense")

ErrNonsense is a mildly humorous error returned when a method is requested with nonsense arguments.

View Source
var ErrParsingResponse = errors.NewError("could not parse response from server")

ErrParsingResponse is returned whenever the client did not understand or could not parse the response from the server. This could be due to malformed HTML or a response that otherwise does not make sense within the current context.

View Source
var ErrParsingURL = errors.NewError("could not parse URL")

ErrParsingURL is returned if a failure occurs while attempting to parse a URL. This is typically returned by the HTTPClient's mode of operations but may appear elsewhere.

View Source
var ErrReadingBody = errors.NewError("could not read response body")

ErrReadingBody is returned in circumstances where reading the response body has failed. In most cases, this should be caught by the response's status code, but if a status code of 200 is received along with an empty body, this error will be returned.

View Source
var ErrRequestSetup = errors.NewError("request setup failed or could not construct a valid request")

ErrRequestSetup is returned whenever the client attempts to create a request that cannot be handled by net/http.

View Source
var ErrResponseFailure = errors.NewError("response failed")

ErrResponseFailure is returned if the http.Response issued by the client returned an error.

View Source
var ErrSavingState = errors.NewError("could not save state")

ErrSavingState is returned if an attempt to save the application state fails.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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