errors

package
v0.6.0-test3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InternalError = NewError(http.StatusInternalServerError, "Server Internal Error")

Functions

This section is empty.

Types

type Error

type Error struct {
	Status  int
	Message string
}

func NewError

func NewError(status int, message string) *Error

func (*Error) Code

func (e *Error) Code() int

func (*Error) Error

func (e *Error) Error() string

Jump to

Keyboard shortcuts

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