Error implements Error() for the error interface
()
| 133 | |
| 134 | // Error implements Error() for the error interface |
| 135 | func (e *AnnotatedError) Error() string { |
| 136 | return fmt.Sprintf("%s: %s", e.error.String(), e.message) |
| 137 | } |
| 138 | |
| 139 | // NewAnnotatedError creates a new AnnotatedError with the given error and message. |
| 140 | func NewAnnotatedError(error *Error, message string) *AnnotatedError { |