@API(type=EXTENDABLE,
src=PUBLIC)
public class InvalidEditException
extends java.lang.Exception
AuthorSchemaAwareEditingHandler
methods when an edit is considered invalid and must be rejected.Constructor and Description |
---|
InvalidEditException(java.lang.String title,
java.lang.String description,
boolean presentToUser)
Constructor.
|
InvalidEditException(java.lang.String title,
java.lang.String description,
boolean presentToUser,
boolean showLinkToSchemaAwarePreferences)
Constructor.
|
InvalidEditException(java.lang.String title,
java.lang.String description,
java.lang.Throwable cause,
boolean presentToUser)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHtmlMessage() |
java.lang.String |
getTitle() |
boolean |
isPresentToUser() |
boolean |
isShowLinkToSchemaAwarePreferences() |
void |
setHtmlMessage(java.lang.String htmlMessage) |
void |
setPresentToUser(boolean presentToUser)
Choose not to present the exception to the user.
|
void |
setShowLinkToSchemaAwarePreferences(boolean showLinkToSchemaAwarePreferences) |
public InvalidEditException(java.lang.String title, java.lang.String description, boolean presentToUser, boolean showLinkToSchemaAwarePreferences)
title
- Title to be presented to the user.description
- Error message.presentToUser
- true
if the error message must be presented to the user.showLinkToSchemaAwarePreferences
- If true
when the error message is presented to the user a link
to the Schema Aware preference page will be added.public InvalidEditException(java.lang.String title, java.lang.String description, boolean presentToUser)
title
- Title to be presented to the user.description
- Error message.presentToUser
- true
if the error message must be presented to the user.public InvalidEditException(java.lang.String title, java.lang.String description, java.lang.Throwable cause, boolean presentToUser)
title
- Title to be presented to the user.description
- Error message.cause
- The exception cause. A null value is
permitted, and indicates that the cause is nonexistent or
unknown.presentToUser
- true
if the error message must be presented to the user.public boolean isPresentToUser()
true
if the error message should be presented to the user.public java.lang.String getTitle()
public void setHtmlMessage(java.lang.String htmlMessage)
htmlMessage
- An error message that uses HTML elements for styling.public java.lang.String getHtmlMessage()
null
if a styled message is
not available.public void setShowLinkToSchemaAwarePreferences(boolean showLinkToSchemaAwarePreferences)
showLinkToSchemaAwarePreferences
- The showLinkToSchemaAwarePreferences to set.public boolean isShowLinkToSchemaAwarePreferences()
public void setPresentToUser(boolean presentToUser)
presentToUser
- The presentToUser to set.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.