errors

package
v0.0.0-...-2039734 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadRequest

func BadRequest(details string) error

func Conflict

func Conflict(details string, cause error) error

func InternalServerError

func InternalServerError(details string, cause error) error

func NotFound

func NotFound(details string) error

func Unauthenticated

func Unauthenticated() error

func Unauthorized

func Unauthorized() error

Types

type Error

type Error struct {
	// status code
	// required: true
	Status int `json:"status"`
	// error message
	// required: true
	Message string `json:"message"`
	// error details
	Details string `json:"detail"`
	Cause   error  `json:"-"`
}

Error is the error returned if an error occurred swagger:model errorResponse

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