<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: want to show error message thrown from java in share page in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/want-to-show-error-message-thrown-from-java-in-share-page/m-p/45351#M18276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It always depends on the context that you are referring to. Are we talking about document library actions, or just arbitrary pieces of code calling the Repository-tier? Generally speaking, it is the responsibility of the client-side code (Share JavaScript) to show proper error messages. Most of the generic handling (i.e. document library actions) will simply show a generic error, unless you override the error handler via custom JavaScript.&lt;/P&gt;&lt;P&gt;Also, depending on the context of your Java code, some exception may simply not bubble up to the Share tier. This for example applies to transaction-level behaviours which will have any exceptions wrapped up in a very generic, technical exception, so the error message sent back to Share ultimately does not contain any useful information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Aug 2018 13:12:18 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2018-08-03T13:12:18Z</dc:date>
    <item>
      <title>want to show error message thrown from java in share page</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/want-to-show-error-message-thrown-from-java-in-share-page/m-p/45350#M18275</link>
      <description>Hi all,Want to show error message thrown from java in share page.Tried like :&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;throw new Exception("Email-id already exists..! Please try with different email-id");&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;throw new AlfrescoRuntimeException("Email-id already exists..! Please try with different email-id");How to show exceptio</description>
      <pubDate>Fri, 03 Aug 2018 13:01:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/want-to-show-error-message-thrown-from-java-in-share-page/m-p/45350#M18275</guid>
      <dc:creator>kranthi</dc:creator>
      <dc:date>2018-08-03T13:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: want to show error message thrown from java in share page</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/want-to-show-error-message-thrown-from-java-in-share-page/m-p/45351#M18276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It always depends on the context that you are referring to. Are we talking about document library actions, or just arbitrary pieces of code calling the Repository-tier? Generally speaking, it is the responsibility of the client-side code (Share JavaScript) to show proper error messages. Most of the generic handling (i.e. document library actions) will simply show a generic error, unless you override the error handler via custom JavaScript.&lt;/P&gt;&lt;P&gt;Also, depending on the context of your Java code, some exception may simply not bubble up to the Share tier. This for example applies to transaction-level behaviours which will have any exceptions wrapped up in a very generic, technical exception, so the error message sent back to Share ultimately does not contain any useful information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 13:12:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/want-to-show-error-message-thrown-from-java-in-share-page/m-p/45351#M18276</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-08-03T13:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: want to show error message thrown from java in share page</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/want-to-show-error-message-thrown-from-java-in-share-page/m-p/45352#M18277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually wrote behaviour for avoiding duplication of email-id at the time of user creation.So tried like that to throw exception.&lt;/P&gt;&lt;P&gt;Alternatively need to write webscript that need to be call in users-min.js to show exception right ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 13:22:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/want-to-show-error-message-thrown-from-java-in-share-page/m-p/45352#M18277</guid>
      <dc:creator>kranthi</dc:creator>
      <dc:date>2018-08-03T13:22:56Z</dc:date>
    </item>
  </channel>
</rss>

