go-errhttp/proxyauthrequired.go

42 lines
796 B
Go
Raw Normal View History

2017-02-06 20:58:13 +00:00
package errhttp
var _ Error = internalProxyAuthRequired{}
var _ ProxyAuthRequired = internalProxyAuthRequired{}
var ErrProxyAuthRequired error = ProxyAuthRequiredWrap(nil)
2017-02-06 20:58:13 +00:00
type ProxyAuthRequired interface {
ClientError
ProxyAuthRequired()
}
type internalProxyAuthRequired struct {
err error
}
func ProxyAuthRequiredWrap(err error) error {
return internalProxyAuthRequired{
err:err,
}
}
func (receiver internalProxyAuthRequired) Error() string {
return receiver.err.Error()
}
func (internalProxyAuthRequired) ErrHTTP() {
// Nothing here.
}
2017-02-06 20:58:13 +00:00
func (internalProxyAuthRequired) ClientError() {
// Nothing here.
}
func (internalProxyAuthRequired) ProxyAuthRequired() {
// Nothing here.
}
func (receiver internalProxyAuthRequired) Unwrap() error {
return receiver.err
}