go-errhttp/requesturitoolong.go

38 lines
647 B
Go
Raw Normal View History

2017-02-06 20:58:13 +00:00
package errhttp
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.
}
func (receiver internalRequestURITooLong) Unwrap() error {
return receiver.err
}