vbnet

package module
v0.1.2-0...-7e0263f Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: Apache-2.0 Imports: 1 Imported by: 3

README

vbnet

Build Status codecov Go Report Card GoDoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPError

type HTTPError interface {
	// Message is a textual description of the problem ready to send to the
	// user
	Message() string
	// HTTPCode defines the code used when this error is returned over the HTTP
	// protocol
	HTTPCode() int
	// Code is a unique internal error code that can be used to exactly
	// aggregate single errors.
	Code() int
	// Inner is the internal error that caused this httpError
	Inner() error

	error
}

HTTPError collects useful meta informations for network applications relying on the HTTP protocol

func NewHTTPError

func NewHTTPError(message string, httpCode int, code int, inner error) HTTPError

NewHTTPError creates a new instance that implements the HTTPError interface and returns it

Jump to

Keyboard shortcuts

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