teresa_errors

package
v0.0.0-...-3544c3d Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInternalServerError = status.Errorf(codes.Unknown, "Internal Server Error")

Functions

func Get

func Get(err error) error

Get returns a gRPC error if err is a GrpcError, otherwise, returns the low level error

Types

type Error

type Error interface {
	GrpcError
	Error() string
}

func New

func New(grpcErr, err error) Error

func NewInternalServerError

func NewInternalServerError(err error) Error

type GrpcError

type GrpcError interface {
	Grpc() error
}

Jump to

Keyboard shortcuts

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