TaskError extends the standard error interface with a Code method. This code will be used as the exit code of the program which allows the user to distinguish between different types of errors.
| 45 | // be used as the exit code of the program which allows the user to distinguish |
| 46 | // between different types of errors. |
| 47 | type TaskError interface { |
| 48 | error |
| 49 | Code() int |
| 50 | } |
| 51 | |
| 52 | // New returns an error that formats as the given text. Each call to New returns |
| 53 | // a distinct error value even if the text is identical. This wraps the standard |
no outgoing calls
no test coverage detected
searching dependent graphs…