public class UpgradeException extends AppianException
Thrown when a condition occurs during a process upgrade that prevents the upgrade from continuing.
Constructor and Description |
---|
UpgradeException(ErrorCode errorCode,
java.lang.Object... errorCodeArgs) |
UpgradeException(ErrorCode errorCode,
java.lang.Throwable cause)
Creates an instance with the given error code and cause.
|
UpgradeException(ErrorCode errorCode,
java.lang.Throwable cause,
java.lang.Object... errorCodeArgs) |
Modifier and Type | Method and Description |
---|---|
ProcessUpgrade[] |
getCompletedUpgrades()
Gets the ProcessUpgrade objects representing the upgrade attempts that completed
before the exception occurred.
|
java.lang.Long[] |
getProcessIdsCausingFailure()
Gets the process ids of the batch of processes that were being upgraded when the
exception occurred.
|
void |
setCompletedUpgrades(ProcessUpgrade[] completedUpgrades)
Sets the ProcessUpgrade objects representing the upgrade attempts that completed
before the exception occurred.
|
void |
setProcessIdsCausingFailure(java.lang.Long[] processIdsCausingFailure)
Sets the process ids of the batch of processes that were being upgraded when the
exception occurred.
|
getErrorCode, getErrorCodeArguments, getErrorCodeArguments, getErrorCodeArgumentsAsStringArray, getLocalizedMessage, getLocalizedMessage, getLocalizedMessageWithErrorCode, getLocalizedTitle, getMessage, toString
public UpgradeException(ErrorCode errorCode, java.lang.Throwable cause)
errorCode
- the error code associated with the exceptioncause
- the cause (which is saved for later retrieval by the
Throwable.getCause()
method). (A null
value is
permitted, and indicates that the cause is nonexistent or unknown.)public UpgradeException(ErrorCode errorCode, java.lang.Object... errorCodeArgs)
errorCode
- the error code associated with the exceptionerrorCodeArgs
- the arguments to be used to render this exception's message representationpublic UpgradeException(ErrorCode errorCode, java.lang.Throwable cause, java.lang.Object... errorCodeArgs)
errorCode
- the error code associated with the exceptioncause
- the cause (which is saved for later retrieval by the
Throwable.getCause()
method). (A null
value is
permitted, and indicates that the cause is nonexistent or unknown.)errorCodeArgs
- the arguments to be used to render this exception's message representationpublic void setCompletedUpgrades(ProcessUpgrade[] completedUpgrades)
ProcessUpgrade.Outcome.SUCCESS
and any outcomes are allowed.completedUpgrades
- the completed upgrade attempts, which can be empty but not nullpublic ProcessUpgrade[] getCompletedUpgrades()
ProcessUpgrade.Outcome.SUCCESS
and any outcomes may be present.public void setProcessIdsCausingFailure(java.lang.Long[] processIdsCausingFailure)
processIdsCausingFailure
- The process ids whose attempted upgrade resulted in failure. Can be empty if
the exception occurred prior to processing any of the batches, but may not
be null.public java.lang.Long[] getProcessIdsCausingFailure()
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.