Package com.yahoo.search.result
Interface ErrorHit
- All Superinterfaces:
Cloneable
- All Known Implementing Classes:
DefaultErrorHit
A hit which holds information on error conditions in a result.
An error hit maintains a main error - the main error of the result.
- Author:
- bratseth
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addError
(ErrorMessage error) Adds an error to this.void
Add all errors from another error hit to thisclone()
Iterator<? extends ErrorMessage>
Returns all the detail errors of this error hit, including the main errorerrors()
Returns a read-only set containing all the error of this, including the main errorboolean
hasOnlyErrorCode
(int code) Returns true if all errors in this has the given error codeboolean
isMeta()
Returns true - this is a meta hit containing information on other hitsvoid
-
Method Details
-
setSource
-
addError
Adds an error to this. This may change the main error and/or the list of detailed errors -
addErrors
Add all errors from another error hit to this -
errorIterator
Iterator<? extends ErrorMessage> errorIterator()Returns all the detail errors of this error hit, including the main error -
errors
Set<ErrorMessage> errors()Returns a read-only set containing all the error of this, including the main error -
isMeta
boolean isMeta()Returns true - this is a meta hit containing information on other hits -
hasOnlyErrorCode
boolean hasOnlyErrorCode(int code) Returns true if all errors in this has the given error code -
clone
Object clone()
-