relayerror

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Errors used across different packages
	ErrServerInternal = NewError(1000, "server internal error")
)

Functions

This section is empty.

Types

type Error

type Error struct {
	Code    uint16 `json:"code"`
	Message string `json:"message"`
}

func NewError

func NewError(code uint16, message string) *Error

func (*Error) AddError

func (e *Error) AddError(err error) *Error

func (*Error) AddMessage

func (e *Error) AddMessage(message string) *Error

func (*Error) Error

func (e *Error) Error() string

func (*Error) Marshal

func (e *Error) Marshal() []byte

Jump to

Keyboard shortcuts

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