var ErrParse … var ErrInvalidRequest … var ErrMethodNotFound … var ErrInvalidParams … var ErrInternal … var ErrServerOverloaded … var ErrUnknown … var ErrServerClosing … var ErrClientClosing … const wireVersion … type wireCombined … type WireError … // NewError returns an error that will encode on the wire correctly. // The standard codes are made available from this package, this function should // only be used to build errors for application specific codes as allowed by the // specification. func NewError(code int64, message string) error { … } func (err *WireError) Error() string { … } func (err *WireError) Is(other error) bool { … }