go-errhttp/variantaisonegotiates.go

33 lines
597 B
Go
Raw Normal View History

2017-02-06 21:14:15 +00:00
package errhttp
type VariantAlsoNegotiates interface {
ServerError
VariantAlsoNegotiates()
}
type internalVariantAlsoNegotiates struct {
err error
}
func VariantAlsoNegotiatesWrap(err error) error {
return internalVariantAlsoNegotiates{
err:err,
}
}
func (receiver internalVariantAlsoNegotiates) Error() string {
return receiver.err.Error()
}
func (receiver internalVariantAlsoNegotiates) Err() error {
return receiver.err
}
func (internalVariantAlsoNegotiates) ServerError() {
// Nothing here.
}
func (internalVariantAlsoNegotiates) VariantAlsoNegotiates() {
// Nothing here.
}