Class RenameNotAllowedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.appiancorp.suiteapi.common.exceptions.AppianException
com.appiancorp.suiteapi.content.exceptions.RenameNotAllowedException
- All Implemented Interfaces:
Serializable
This exception should be thrown when renaming of a
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.- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRenameNotAllowedException
(ErrorCode errorCode) RenameNotAllowedException
(ErrorCode errorCode, Object... errorCodeArguments) -
Method Summary
Modifier and TypeMethodDescriptionGets the error code associated with this exception.protected Object[]
Gets the arguments that must be used to render this exception's message representation.void
setErrorCodeArguments
(Object... errorCodeArguments) Methods inherited from class com.appiancorp.suiteapi.common.exceptions.AppianException
getErrorCodeArguments, getErrorCodeArgumentsAsStringArray, getLocalizedMessage, getLocalizedMessage, getLocalizedMessageWithErrorCode, getLocalizedTitle, getMessage, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
errorCode
-
errorCodeArguments
-
-
Constructor Details
-
RenameNotAllowedException
-
RenameNotAllowedException
-
-
Method Details
-
getErrorCode
Description copied from class:AppianException
Gets the error code associated with this exception. Subclasses should override this method to return specific error codes. The default implementation returns APNX-1-0000-000 (ErrorCode.GENERIC_ERROR).- Overrides:
getErrorCode
in classAppianException
- See Also:
-
setErrorCodeArguments
-
getErrorCodeArguments
Description copied from class:AppianException
Gets the arguments that must be used to render this exception's message representation. Subclasses should override this method to return specific arguments. The default implementation returns a length 1 array containing the message as returned by the parent class of AppianException. This method is only called whenAppianException.getErrorCodeArguments(Locale)
hasn't been overwritten.- Overrides:
getErrorCodeArguments
in classAppianException
- Returns:
- the arguments of the error code tied to this exception
- See Also:
-