errors

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package errors provide data structure for errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPError

type HTTPError struct {
	Message    string
	StatusCode int
}

HTTPError is an error struct that returns both message and status code.

func (*HTTPError) Error

func (httperror *HTTPError) Error() string

Error returns error message.

Jump to

Keyboard shortcuts

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