go-errhttp/requestentitytoolarge.go

42 lines
864 B
Go
Raw Normal View History

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