Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewErrorWithResultCode ¶
func NewErrorWithResultCode(code open.ResultCode) error
func NewGRpcErrorWithResultCode ¶
func NewGRpcErrorWithResultCode(code open.ResultCode, params ...interface{}) error
SGError转换为grpc error
Types ¶
type PBSGError ¶
type PBSGError struct {
// contains filtered or unexported fields
}
func NewSGError ¶
func NewSGError(code open.ResultCode, params ...interface{}) PBSGError
func (PBSGError) Code ¶
func (e PBSGError) Code() open.ResultCode
Click to show internal directories.
Click to hide internal directories.