mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
- New edit properties dialog used when new content is added/created
- Minor fixes/enhancements git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2805 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -82,7 +82,7 @@ public abstract class BaseDialogBean implements IDialogBean
|
||||
// rollback the transaction
|
||||
try { if (tx != null) {tx.rollback();} } catch (Exception ex) {}
|
||||
Utils.addErrorMessage(formatErrorMessage(e));
|
||||
outcome = null;
|
||||
outcome = getErrorOutcome(e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -209,11 +209,24 @@ public abstract class BaseDialogBean implements IDialogBean
|
||||
}
|
||||
|
||||
/**
|
||||
* The default message id to use in error messages
|
||||
*
|
||||
* @return The error message lookup id
|
||||
*/
|
||||
protected String getErrorMessageId()
|
||||
{
|
||||
return "error_generic";
|
||||
return Repository.ERROR_GENERIC;
|
||||
}
|
||||
|
||||
/**
|
||||
* The outcome to return if the given exception occurs
|
||||
*
|
||||
* @param exception The exception that got thrown
|
||||
* @return The error outcome, null by default
|
||||
*/
|
||||
protected String getErrorOutcome(Throwable exception)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user