status

package
v0.0.0-...-1fd1dba Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

func (*Error) Error

func (e *Error) Error() string

func (*Error) Lsps0Status

func (e *Error) Lsps0Status() *Status

type Status

type Status struct {
	Code    codes.Code
	Message string
}

func Convert

func Convert(err error) *Status

Convert is a convenience function which removes the need to handle the boolean return value from FromError.

func FromError

func FromError(err error) (s *Status, ok bool)

func New

func New(c codes.Code, msg string) *Status

func Newf

func Newf(c codes.Code, format string, a ...interface{}) *Status

func (*Status) Err

func (s *Status) Err() error

func (*Status) String

func (s *Status) String() string

Jump to

Keyboard shortcuts

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