errors

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrResponse

type ErrResponse struct {
	Errors []Error `json:"errors"`
	// contains filtered or unexported fields
}

func ParseError

func ParseError(err error) *ErrResponse

func (*ErrResponse) Error added in v0.6.0

func (r *ErrResponse) Error() string

func (*ErrResponse) GRPCStatus

func (r *ErrResponse) GRPCStatus() *status.Status

func (*ErrResponse) HTTPStatus added in v0.6.0

func (r *ErrResponse) HTTPStatus() int

type Error

type Error struct {
	Code   string `json:"code"`
	Detail string `json:"detail"`
}

Jump to

Keyboard shortcuts

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