public class RenameNotAllowedException extends AppianException
Content
(like Rule
or
Constant
) is not allowed in certain scenarios. Since
ContentService.createVersion(com.appiancorp.suiteapi.content.Content, Integer)
doesn't
restrict renaming, this exception should be thrown explicitly if it's allowed for the scenario.Modifier and Type | Field and Description |
---|---|
protected ErrorCode |
errorCode |
protected java.lang.Object[] |
errorCodeArguments |
Constructor and Description |
---|
RenameNotAllowedException(ErrorCode errorCode) |
RenameNotAllowedException(ErrorCode errorCode,
java.lang.Object... errorCodeArguments) |
Modifier and Type | Method and Description |
---|---|
ErrorCode |
getErrorCode()
Gets the error code associated with this exception.
|
protected java.lang.Object[] |
getErrorCodeArguments()
Gets the arguments that must be used to render this exception's message
representation.
|
void |
setErrorCodeArguments(java.lang.Object... errorCodeArguments) |
getErrorCodeArguments, getErrorCodeArgumentsAsStringArray, getLocalizedMessage, getLocalizedMessage, getLocalizedMessageWithErrorCode, getLocalizedTitle, getMessage, toString
protected ErrorCode errorCode
protected java.lang.Object[] errorCodeArguments
public RenameNotAllowedException(ErrorCode errorCode)
public RenameNotAllowedException(ErrorCode errorCode, java.lang.Object... errorCodeArguments)
public ErrorCode getErrorCode()
AppianException
getErrorCode
in class AppianException
ErrorCode.GENERIC_ERROR
public void setErrorCodeArguments(java.lang.Object... errorCodeArguments)
protected java.lang.Object[] getErrorCodeArguments()
AppianException
AppianException.getErrorCodeArguments(Locale)
hasn't been
overwritten.getErrorCodeArguments
in class AppianException
ErrorCode.GENERIC_ERROR
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.