go-errhttp/unsupportedmediatype.go

33 lines
587 B
Go

package errhttp
type UnsupportedMediaType interface {
ClientError
UnsupportedMediaType()
}
type internalUnsupportedMediaType struct {
err error
}
func UnsupportedMediaTypeWrap(err error) error {
return internalUnsupportedMediaType{
err:err,
}
}
func (receiver internalUnsupportedMediaType) Error() string {
return receiver.err.Error()
}
func (receiver internalUnsupportedMediaType) Err() error {
return receiver.err
}
func (internalUnsupportedMediaType) ClientError() {
// Nothing here.
}
func (internalUnsupportedMediaType) UnsupportedMediaType() {
// Nothing here.
}