errors

package
v3.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2017 License: MIT Imports: 1 Imported by: 32

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