apierror

package
v0.0.0-...-c5d597e Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	Message string `json:"message"`
	// contains filtered or unexported fields
}

func New

func New(statusCode int, message string, err error) *APIError

func (*APIError) Error

func (a *APIError) Error() string

func (*APIError) MarshalJSON

func (a *APIError) MarshalJSON() ([]byte, error)

func (*APIError) StatusCode

func (a *APIError) StatusCode() int

type MissingParameters

type MissingParameters struct {
	Params []string
}

func (*MissingParameters) Error

func (err *MissingParameters) Error() string

Jump to

Keyboard shortcuts

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