errors

package
v5.1.3 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: MIT 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