apierror

package
v0.0.0-...-23cd6c9 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MethodHTTP string = "HTTP"
	MethodGRPC string = "GRPC"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiError

type ApiError struct {
	IApiError
	// contains filtered or unexported fields
}

func (ApiError) Code

func (ae ApiError) Code() int

func (ApiError) Error

func (ae ApiError) Error() string

func (ApiError) Status

func (ae ApiError) Status() string

type IApiError

type IApiError interface {
	Error() string
	Status() string
	Code() int
}

func New

func New(e error, status string, m string) IApiError

Jump to

Keyboard shortcuts

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