public class UpgradeResult extends Object
| Modifier and Type | Field and Description |
|---|---|
static UpgradeResult |
OK |
| Constructor and Description |
|---|
UpgradeResult()
Creates an UpgradeResult with no errors.
|
UpgradeResult(Collection<String> errors)
Creates status with only one error message and indexing params set to none.
|
UpgradeResult(String error)
Creates status with only one error message and indexing params set to none.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addError(String error)
Add an error message to the result.
|
Collection<String> |
getErrors()
List of errors that occurred during the upgrade
|
boolean |
successful()
Checks whether this upgrade was successful.
|
public static final UpgradeResult OK
public UpgradeResult()
addError(String)public UpgradeResult(String error)
error - the only error messagepublic UpgradeResult(Collection<String> errors)
errors - a list of errors that occurred during the upgradepublic boolean successful()
public Collection<String> getErrors()
public void addError(String error)
error - to add to the resultCopyright © 2002-2020 Atlassian. All Rights Reserved.