Documentation ¶
Index ¶
- Variables
- type RpcError
- func NewMethodExecError(service, method string) *RpcError
- func NewProxyDisconnected(uuid uint64, id uint32, name string) *RpcError
- func NewProxyNotExit(proxyid uint32) *RpcError
- func NewProxyNotFound(callid uint32) *RpcError
- func NewRpcError(code RpcErrorCode, format string, args ...interface{}) *RpcError
- func NewServiceNotExist(uuid uint64) *RpcError
- type RpcErrorCode
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TransportClose = &RpcError{TRANSPORT_CLOSED, "Transport has been closed"} ProxyInvalid = &RpcError{PROXY_NOT_EXIST, "Proxy Is Invalid"} StubCallInvalid = &RpcError{STUBCALL_INVALID, "stubcall invalid"} ServicePanic = &RpcError{SERVICE_PANIC, "service exec panic"} RequestInvalid = &RpcError{errCode: COMM_ERR, errStr: "invalid request messsage!"} ProtocolError = &RpcError{errCode: COMM_ERR, errStr: "rpc protocol message buffer error !"} )
Functions ¶
This section is empty.
Types ¶
type RpcError ¶
type RpcError struct {
// contains filtered or unexported fields
}
func NewMethodExecError ¶
func NewProxyDisconnected ¶
func NewProxyNotExit ¶
func NewProxyNotFound ¶
func NewRpcError ¶
func NewRpcError(code RpcErrorCode, format string, args ...interface{}) *RpcError
func NewServiceNotExist ¶
func (*RpcError) Code ¶
func (re *RpcError) Code() RpcErrorCode
type RpcErrorCode ¶
type RpcErrorCode uint32
const ( COMM_ERR RpcErrorCode = iota + 1 TRANSPORT_CLOSED PROXY_NOT_EXIST PROXY_DISCONNECTED PROXY_TIMEOUT PROXY_CALL_NO_FOUND STUBCALL_INVALID SERVICE_SHUTDOWN SERVICE_NOT_EXIST SERIVCE_HAS_EXIST METHOD_EXECERROR SERVICE_PANIC SERVICE_NOT_FOUND FUNCTION_NOT_FOUND )
Click to show internal directories.
Click to hide internal directories.