ErrSearchResultSet returns a SearchResultSet that immediately returns the given error. Any supplied annotations.Annotations are merged and exposed via Warnings, allowing callers to surface warnings accumulated before the error occurred.
(err error, warnings ...annotations.Annotations)
| 314 | // Any supplied annotations.Annotations are merged and exposed via Warnings, allowing |
| 315 | // callers to surface warnings accumulated before the error occurred. |
| 316 | func ErrSearchResultSet(err error, warnings ...annotations.Annotations) SearchResultSet { |
| 317 | var warns annotations.Annotations |
| 318 | for _, w := range warnings { |
| 319 | warns.Merge(w) |
| 320 | } |
| 321 | return errSearchResultSet{err: err, warnings: warns} |
| 322 | } |
| 323 | |
| 324 | // LabelHints specifies hints passed for label reads. |
| 325 | // This is used only as an option for implementation to use. |
searching dependent graphs…