errors

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: EPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPError

type HTTPError struct {
	StatusCode int
	Message    string
}

func NewHTTPError

func NewHTTPError(statusCode int, message string) *HTTPError

func NewHTTPErrorf

func NewHTTPErrorf(statusCode int, messageFmt string, args ...interface{}) *HTTPError

func (HTTPError) Error

func (e HTTPError) Error() string

type InternalError

type InternalError struct {
	// contains filtered or unexported fields
}

func NewInternalError

func NewInternalError(message string) *InternalError

func NewInternalErrorf

func NewInternalErrorf(messageFmt string, args ...interface{}) *InternalError

func (InternalError) Error

func (e InternalError) Error() string

Jump to

Keyboard shortcuts

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