🚚 Rename getter methods
This commit is contained in:
parent
6e7400df4d
commit
ac5bbb08c0
3 changed files with 10 additions and 10 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue