33 lines
557 B
Go
33 lines
557 B
Go
|
package errhttp
|
||
|
|
||
|
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 (receiver internalProxyAuthRequired) Err() error {
|
||
|
return receiver.err
|
||
|
}
|
||
|
|
||
|
func (internalProxyAuthRequired) ClientError() {
|
||
|
// Nothing here.
|
||
|
}
|
||
|
|
||
|
func (internalProxyAuthRequired) ProxyAuthRequired() {
|
||
|
// Nothing here.
|
||
|
}
|