🚚 Rename getter methods

This commit is contained in:
Dan Jones 2024-01-17 11:43:07 -06:00
commit ac5bbb08c0
3 changed files with 10 additions and 10 deletions

View file

@ -3,13 +3,13 @@ package errors
// ResponsableError is an error that has information useful in an HTTP response.
// The string returned by Error should be suitable for logging useful information
// to assist debugging the error.
// Status should return an appropriate HTTP status.
// Msg should return a message suitable to display to the end user. If the message
// GetStatus should return an appropriate HTTP status.
// GetMsg should return a message suitable to display to the end user. If the message
// returned by Error is safe for the end user, it may simply call that.
type ResponsableError interface {
Error() string
Status() int
Msg() string
GetStatus() int
GetMsg() string
}
// UnwrappableError allows a ResponsableError to wrap another error.