rpc/client/error.go
crusader 5dafb388b1 ing
2017-11-22 20:55:10 +09:00

27 lines
552 B
Go

package client
// ClientError is an error Client methods can return.
type ClientError struct {
// Set if the error is timeout-related.
Timeout bool
// Set if the error is connection-related.
Connection bool
// Set if the error is server-related.
Server bool
// Set if the error is related to internal resources' overflow.
// Increase PendingRequests if you see a lot of such errors.
Overflow bool
// May be set if AsyncResult.Cancel is called.
Canceled bool
Err error
}
func (e *ClientError) Error() string {
return e.Err.Error()
}