public interface ErrorHit extends Cloneable
Modifier and Type | Method and Description |
---|---|
void |
addError(ErrorMessage error)
Adds an error to this.
|
void |
addErrors(ErrorHit errorHit)
Add all errors from another error hit to this
|
Object |
clone() |
Iterator<? extends ErrorMessage> |
errorIterator()
Returns all the detail errors of this error hit, including the main error
|
Set<ErrorMessage> |
errors()
Returns a read-only set containing all the error of this, including the main error
|
ErrorMessage |
getMainError()
Deprecated.
use errors().iterator().next()
|
boolean |
hasOnlyErrorCode(int code)
Returns true if all errors in this has the given error code
|
boolean |
isMeta()
Returns true - this is a meta hit containing information on other hits
|
void |
setSource(String source) |
void setSource(String source)
@Deprecated ErrorMessage getMainError()
void addError(ErrorMessage error)
void addErrors(ErrorHit errorHit)
Iterator<? extends ErrorMessage> errorIterator()
Set<ErrorMessage> errors()
boolean isMeta()
boolean hasOnlyErrorCode(int code)
Object clone()
Copyright © 2018. All rights reserved.