grpcError

package
v0.0.0-...-33d0708 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DBSTATE = "pq: "
View Source
var SQLSTATE = "sql: "

Functions

This section is empty.

Types

type Err

type Err struct {
	Code    codes.Code
	Message string
	Detail  interface{}
}

func NewError

func NewError(code codes.Code, message string, err error) *Err

func ParseError

func ParseError(err error) *Err

func (Err) Error

func (e Err) Error() string

func (Err) GetMessage

func (e Err) GetMessage() string

func (Err) GetStatus

func (e Err) GetStatus() codes.Code

Jump to

Keyboard shortcuts

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