errors

package
v0.0.0-...-ccaad63 Latest Latest
Warning

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

Go to latest
Published: May 5, 2016 License: Apache-2.0, BSD-3-Clause, CC-BY-3.0, + 3 more Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	StatusCode int
	Message    string
}

Error : if response's status code is not 200 or does not meet requirement, an Error instance will be returned

func ParseError

func ParseError(err error) (Error, bool)

ParseError parses err, if err is type Error, convert it to Error

func (Error) Error

func (e Error) Error() string

Error ...

Jump to

Keyboard shortcuts

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