Documentation
¶
Index ¶
- Constants
- Variables
- func IsOpenStack() bool
- type ErrMsg
- func NewDatabaseErr(err error) *ErrMsg
- func NewDatabaseStr(str string) *ErrMsg
- func NewNoAuthErr(err error) *ErrMsg
- func NewNoAuthStr(str string) *ErrMsg
- func NewNormalErr(errMsg string, err error) *ErrMsg
- func NewNormalInternalStr(str string) *ErrMsg
- func NewNormalStr(errMsg string, str string) *ErrMsg
- func NewPanicErr(err error) *ErrMsg
- func NewPanicStr(str string) *ErrMsg
- func NewProtocolErr(err error) *ErrMsg
- func NewProtocolStr(str string) *ErrMsg
- func (this_ *ErrMsg) Error() string
- func (this_ *ErrMsg) IsErrorDatabase() bool
- func (this_ *ErrMsg) IsErrorNoAuth() bool
- func (this_ *ErrMsg) IsErrorNormal() bool
- func (this_ *ErrMsg) IsErrorPanic() bool
- func (this_ *ErrMsg) IsErrorProtocol() bool
- func (this_ *ErrMsg) Reset()
- func (this_ *ErrMsg) String() string
- func (this_ *ErrMsg) WithStackTrace()
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 NewDatabaseStr ¶
func NewNoAuthErr ¶
func NewNoAuthStr ¶
func NewNormalErr ¶
func NewNormalInternalStr ¶
func NewNormalStr ¶
func NewPanicErr ¶
func NewPanicStr ¶
func NewProtocolErr ¶
func NewProtocolStr ¶
func (*ErrMsg) IsErrorDatabase ¶
func (*ErrMsg) IsErrorNoAuth ¶
func (*ErrMsg) IsErrorNormal ¶
func (*ErrMsg) IsErrorPanic ¶
func (*ErrMsg) IsErrorProtocol ¶
func (*ErrMsg) WithStackTrace ¶
func (this_ *ErrMsg) WithStackTrace()
Click to show internal directories.
Click to hide internal directories.