2017-02-06 20:58:13 +00:00
|
|
|
package errhttp
|
|
|
|
|
2023-02-16 19:36:53 +00:00
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
)
|
|
|
|
|
|
|
|
var ErrRequestURITooLong error = RequestURITooLongWrap(errors.New("Request URI Too Long"))
|
|
|
|
|
2017-02-06 20:58:13 +00:00
|
|
|
type RequestURITooLong interface {
|
|
|
|
error
|
|
|
|
Err() error
|
|
|
|
RequestURITooLong()
|
|
|
|
}
|
|
|
|
|
|
|
|
type internalRequestURITooLong struct {
|
|
|
|
err error
|
|
|
|
}
|
|
|
|
|
|
|
|
func RequestURITooLongWrap(err error) error {
|
|
|
|
return internalRequestURITooLong{
|
|
|
|
err:err,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (receiver internalRequestURITooLong) Error() string {
|
|
|
|
return receiver.err.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (receiver internalRequestURITooLong) Err() error {
|
|
|
|
return receiver.err
|
|
|
|
}
|
|
|
|
|
|
|
|
func (internalRequestURITooLong) ClientError() {
|
|
|
|
// Nothing here.
|
|
|
|
}
|
|
|
|
|
|
|
|
func (internalRequestURITooLong) RequestURITooLong() {
|
|
|
|
// Nothing here.
|
|
|
|
}
|
2023-02-16 06:24:28 +00:00
|
|
|
|
|
|
|
func (receiver internalRequestURITooLong) Unwrap() error {
|
|
|
|
return receiver.err
|
|
|
|
}
|