berror

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServerInternalErrorStr = "server_internal_error"
)

Variables

View Source
var (
	ErrMsgName = string(proto.MessageName(&basepb.ErrorMessage{}))

	GetErr = func() *ErrMsg {
		return errPool.Get().(*ErrMsg)
	}
	PutErr = func(e *ErrMsg) {
		errPool.Put(e)
	}
)

Functions

func IsOpenStack

func IsOpenStack() bool

Types

type ErrMsg

type ErrMsg basepb.ErrorMessage

func NewDatabaseErr

func NewDatabaseErr(err error) *ErrMsg

func NewDatabaseStr

func NewDatabaseStr(str string) *ErrMsg

func NewNoAuthErr

func NewNoAuthErr(err error) *ErrMsg

func NewNoAuthStr

func NewNoAuthStr(str string) *ErrMsg

func NewNormalErr

func NewNormalErr(errMsg string, err error) *ErrMsg

func NewNormalInternalStr

func NewNormalInternalStr(str string) *ErrMsg

func NewNormalStr

func NewNormalStr(errMsg string, str string) *ErrMsg

func NewPanicErr

func NewPanicErr(err error) *ErrMsg

func NewPanicStr

func NewPanicStr(str string) *ErrMsg

func NewProtocolErr

func NewProtocolErr(err error) *ErrMsg

func NewProtocolStr

func NewProtocolStr(str string) *ErrMsg

func (*ErrMsg) Error

func (this_ *ErrMsg) Error() string

func (*ErrMsg) IsErrorDatabase

func (this_ *ErrMsg) IsErrorDatabase() bool

func (*ErrMsg) IsErrorNoAuth

func (this_ *ErrMsg) IsErrorNoAuth() bool

func (*ErrMsg) IsErrorNormal

func (this_ *ErrMsg) IsErrorNormal() bool

func (*ErrMsg) IsErrorPanic

func (this_ *ErrMsg) IsErrorPanic() bool

func (*ErrMsg) IsErrorProtocol

func (this_ *ErrMsg) IsErrorProtocol() bool

func (*ErrMsg) Reset

func (this_ *ErrMsg) Reset()

func (*ErrMsg) String

func (this_ *ErrMsg) String() string

func (*ErrMsg) WithStackTrace

func (this_ *ErrMsg) WithStackTrace()

Jump to

Keyboard shortcuts

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