2017-02-06 21:14:15 +00:00
|
|
|
package errhttp
|
|
|
|
|
2023-02-16 19:36:53 +00:00
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
)
|
|
|
|
|
|
|
|
var ErrVariantAlsoNegotiates error = VariantAlsoNegotiatesWrap(errors.New("Variant Also Negotiates"))
|
|
|
|
|
2017-02-06 21:14:15 +00:00
|
|
|
type VariantAlsoNegotiates interface {
|
|
|
|
ServerError
|
|
|
|
VariantAlsoNegotiates()
|
|
|
|
}
|
|
|
|
|
2023-02-16 06:24:28 +00:00
|
|
|
var _ VariantAlsoNegotiates = internalVariantAlsoNegotiates{}
|
|
|
|
|
2017-02-06 21:14:15 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2023-02-16 20:01:00 +00:00
|
|
|
func (internalVariantAlsoNegotiates) ErrHTTP() {
|
|
|
|
// Nothing here.
|
|
|
|
}
|
|
|
|
|
2017-02-06 21:14:15 +00:00
|
|
|
func (internalVariantAlsoNegotiates) ServerError() {
|
|
|
|
// Nothing here.
|
|
|
|
}
|
|
|
|
|
|
|
|
func (internalVariantAlsoNegotiates) VariantAlsoNegotiates() {
|
|
|
|
// Nothing here.
|
|
|
|
}
|
2023-02-16 06:24:28 +00:00
|
|
|
|
|
|
|
func (receiver internalVariantAlsoNegotiates) Unwrap() error {
|
|
|
|
return receiver.err
|
|
|
|
}
|