2017-02-06 21:14:15 +00:00
|
|
|
package errhttp
|
|
|
|
|
2023-08-14 12:03:00 +00:00
|
|
|
var _ Error = internalInternalServerError{}
|
|
|
|
var _ InternalServerError = internalInternalServerError{}
|
|
|
|
|
2023-08-14 12:30:30 +00:00
|
|
|
var ErrInternalServerError error = InternalServerErrorWrap(nil)
|
2023-02-16 19:36:53 +00:00
|
|
|
|
2017-02-06 21:14:15 +00:00
|
|
|
type InternalServerError interface {
|
|
|
|
ServerError
|
|
|
|
InternalServerError()
|
|
|
|
}
|
|
|
|
|
2023-02-16 06:24:28 +00:00
|
|
|
var _ InternalServerError = internalInternalServerError{}
|
|
|
|
|
2017-02-06 21:14:15 +00:00
|
|
|
type internalInternalServerError struct {
|
|
|
|
err error
|
|
|
|
}
|
|
|
|
|
|
|
|
func InternalServerErrorWrap(err error) error {
|
|
|
|
return internalInternalServerError{
|
|
|
|
err:err,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (receiver internalInternalServerError) Error() string {
|
|
|
|
return receiver.err.Error()
|
|
|
|
}
|
|
|
|
|
2023-02-16 20:01:00 +00:00
|
|
|
func (internalInternalServerError) ErrHTTP() {
|
|
|
|
// Nothing here.
|
|
|
|
}
|
|
|
|
|
2017-02-06 21:14:15 +00:00
|
|
|
func (internalInternalServerError) ServerError() {
|
|
|
|
// Nothing here.
|
|
|
|
}
|
|
|
|
|
|
|
|
func (internalInternalServerError) InternalServerError() {
|
|
|
|
// Nothing here.
|
|
|
|
}
|
2023-02-16 06:24:28 +00:00
|
|
|
|
|
|
|
func (receiver internalInternalServerError) Unwrap() error {
|
|
|
|
return receiver.err
|
|
|
|
}
|