summaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/search/result/ErrorHit.java
diff options
context:
space:
mode:
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/result/ErrorHit.java')
-rw-r--r--container-search/src/main/java/com/yahoo/search/result/ErrorHit.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/result/ErrorHit.java b/container-search/src/main/java/com/yahoo/search/result/ErrorHit.java
index 31a788bd78a..802af478fa2 100644
--- a/container-search/src/main/java/com/yahoo/search/result/ErrorHit.java
+++ b/container-search/src/main/java/com/yahoo/search/result/ErrorHit.java
@@ -14,8 +14,13 @@ public interface ErrorHit extends Cloneable {
void setSource(String source);
- /** Returns the main error of this result, never null */
- @Deprecated // use: errors().iterator().next()
+ /**
+ * Returns the main error of this result, never null
+ *
+ * @deprecated use errors().iterator().next()
+ */
+ // TODO: Remove on Vespa 7
+ @Deprecated
ErrorMessage getMainError();
/**
@@ -38,8 +43,7 @@ public interface ErrorHit extends Cloneable {
/** Returns true - this is a meta hit containing information on other hits */
boolean isMeta();
- /** Returns true if main error is the given error code or if main error
- is general error 8 and all suberrors are the given error code */
+ /** Returns true if all errors in this has the given error code */
boolean hasOnlyErrorCode(int code);
Object clone();