<?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: Error custom messages throwing Exception in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/error-custom-messages-throwing-exception/m-p/100807#M29046</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/15158"&gt;@davidm&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;This post might be helpful &amp;gt;&amp;nbsp;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/get-exception-on-action-java-class-and-open-a-popup-dialog-on/td-p/270106" target="_blank" rel="nofollow noopener noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/get-exception-on-action-java-class-and-open-a-popup-dialog-on/td-p/270106&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Kind regards,&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jan 2020 13:33:47 GMT</pubDate>
    <dc:creator>EddieMay</dc:creator>
    <dc:date>2020-01-15T13:33:47Z</dc:date>
    <item>
      <title>Error custom messages throwing Exception</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-custom-messages-throwing-exception/m-p/100806#M29045</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i would like to throw some custom error in my Behaviour class when happens&amp;nbsp;&lt;SPAN&gt;specific event over the node. Actually i use AlfrescoRuntimeExceptions with my message:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;if(&amp;lt;event&amp;gt;) throw new AlfrescoRuntimeException("Custom Msg"); &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but Alfresco ignore this custom msg and build other to render it on the popup.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Anyone knows how to build an custom error msg?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Captura.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/397i03AEA23A88D8F67B/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thx in advance.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 12:28:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-custom-messages-throwing-exception/m-p/100806#M29045</guid>
      <dc:creator>davidm</dc:creator>
      <dc:date>2020-01-15T12:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error custom messages throwing Exception</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-custom-messages-throwing-exception/m-p/100807#M29046</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/15158"&gt;@davidm&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;This post might be helpful &amp;gt;&amp;nbsp;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/get-exception-on-action-java-class-and-open-a-popup-dialog-on/td-p/270106" target="_blank" rel="nofollow noopener noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/get-exception-on-action-java-class-and-open-a-popup-dialog-on/td-p/270106&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Kind regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 13:33:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-custom-messages-throwing-exception/m-p/100807#M29046</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-01-15T13:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error custom messages throwing Exception</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-custom-messages-throwing-exception/m-p/100808#M29047</link>
      <description>&lt;P&gt;While the linked thread is relevant for any instances where custom failure messages have been configured in Share actions, it does not apply to errors thrown from Repository-tier behaviours. But I believe we have had multiple such threads on behaviours as well - the root issue here is the way Alfresco treats behaviours with notification frequency of TRANSACTION_COMMIT - those will always be handled by a transaction listener, which wraps any exceptions in an extremely generic message.&lt;/P&gt;
&lt;P&gt;One such thread is &lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/how-to-get-the-proper-exception-message-to-the-cmis-client/m-p/181701/highlight/true#M10249" target="_blank" rel="noopener nofollow noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/how-to-get-the-proper-exception-message-to-the-cmis-client/m-p/181701/highlight/true#M10249&lt;/A&gt; - though this relates to a CMIS client, the core problem is the same. If you want this error message to show in Share, you need to use either EVERY_EVENT or FIRST_EVENT as notification frequency, or hope that Alfresco decides to suddenly change/fix this handling which has remained stable for ~10 years.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 15:44:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-custom-messages-throwing-exception/m-p/100808#M29047</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2020-01-15T15:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error custom messages throwing Exception</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-custom-messages-throwing-exception/m-p/100809#M29048</link>
      <description>&lt;P&gt;Thanks Axel, with&amp;nbsp;&lt;SPAN&gt;EVERY_EVENT stage works well and share shows my custom msg.&amp;nbsp;It would be nice if &lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/67382"&gt;@alfresco&lt;/A&gt; implemented this option at TRANSACTION_COMMIT too &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 09:35:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-custom-messages-throwing-exception/m-p/100809#M29048</guid>
      <dc:creator>davidm</dc:creator>
      <dc:date>2020-01-16T09:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error custom messages throwing Exception</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-custom-messages-throwing-exception/m-p/100810#M29049</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/15158"&gt;@davidm&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for following up - this helps others in the community to know this works. Thanks also for you suggestion.&lt;/P&gt;
&lt;P&gt;Kind regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 11:18:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-custom-messages-throwing-exception/m-p/100810#M29049</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-01-20T11:18:43Z</dc:date>
    </item>
  </channel>
</rss>

