errors

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package errors provides predefined errors.

Index

Constants

View Source
const (
	// ErrUnsupportedDataType represents that the data type is not supported.
	ErrUnsupportedDataType err = "unsupported data type"

	// ErrMalformedMethod indicates that the method is malformed.
	ErrMalformedMethod err = "malformed method"
	// ErrMethodNotFound indicates that the GRPC method is not described in the server.
	ErrMethodNotFound err = "method not found"
	// ErrMethodNotUnary indicates that the GRPC method is not a unary kind.
	ErrMethodNotUnary err = "method is not unary"
	// ErrMethodNotClientStream indicates that the GRPC method is not a client-stream kind.
	ErrMethodNotClientStream err = "method is not client-stream"
	// ErrMethodNotServerStream indicates that the GRPC method is not a server-stream kind.
	ErrMethodNotServerStream err = "method is not server-stream"
	// ErrMethodNotBidirectionalStream indicates that the GRPC method is not a bidirectional-stream kind.
	ErrMethodNotBidirectionalStream err = "method is not bidirectional-stream"
)

Variables

This section is empty.

Functions

func StatusError

func StatusError(err error) error

StatusError converts error to status.Error if applicable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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