Internal is a helper function to return an internal Error.
(err error, format string, args ...interface{})
| 140 | |
| 141 | // Internal is a helper function to return an internal Error. |
| 142 | func Internal(err error, format string, args ...interface{}) *Error { |
| 143 | msg := fmt.Sprintf(format, args...) |
| 144 | return Format(StatusInternal, msg).SetErr( |
| 145 | fmt.Errorf("%s: %w", msg, err), |
| 146 | ) |
| 147 | } |
| 148 | |
| 149 | // Conflict is a helper function to return an conflict Error. |
| 150 | func Conflict(format string, args ...interface{}) *Error { |
no test coverage detected
searching dependent graphs…