Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidArgument = New(protocol.StatusErrInvalidArgument, "invalid argument") ErrUnknownOperation = New(protocol.StatusErrUnknownOperation, "unknown operation") ErrInternalFailure = New(protocol.StatusErrInternalFailure, "internal failure") ErrNotImplemented = New(protocol.StatusErrNotImplemented, "not implemented") ErrOperationTimeout = New(protocol.StatusErrOperationTimeout, "operation timeout") )
Functions ¶
func ErrorResponse ¶
func ErrorResponse(w protocol.EncodeDecoder, msg interface{})
func GetByCode ¶
func GetByCode(code protocol.StatusCode) error
Types ¶
type NetError ¶
type NetError struct {
// contains filtered or unexported fields
}
NetError defines a custom error type.
func (*NetError) StatusCode ¶
func (e *NetError) StatusCode() protocol.StatusCode
Click to show internal directories.
Click to hide internal directories.