Java Code Examples for org.alfresco.error.AlfrescoRuntimeException#getMessage()

The following examples show how to use org.alfresco.error.AlfrescoRuntimeException#getMessage() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MailActionExecuterMonitor.java    From alfresco-repository with GNU Lesser General Public License v3.0 5 votes vote down vote up
public String sendTestMessage()
{
    try
    {
        mailActionExceuter.sendTestMessage();
        Object[] params = {mailActionExceuter.getTestMessageTo()};
        String message = I18NUtil.getMessage("email.outbound.test.send.success", params);
        return message;
    }
    catch (AlfrescoRuntimeException are)
    {
        return (are.getMessage());
    }
}