errors

package
v4.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 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