<?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: try/catch in javascript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/try-catch-in-javascript/m-p/253254#M206384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;agreed your suggestion, but what if i want to update a log file, like a simple text file which is there is company home/logs. I can't update the same right?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jan 2012 09:46:21 GMT</pubDate>
    <dc:creator>marutiprasad</dc:creator>
    <dc:date>2012-01-20T09:46:21Z</dc:date>
    <item>
      <title>try/catch in javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/try-catch-in-javascript/m-p/253252#M206382</link>
      <description>Hi,I am using an action to execute a java script which extracts/import a zip to a location xyz. If the zip is corrupted i need to log the same in a log file.In the positive case it is working properly. But in the negative scenatio (if the zip is corrupted) the logging code is not working.here is my</description>
      <pubDate>Thu, 19 Jan 2012 12:54:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/try-catch-in-javascript/m-p/253252#M206382</guid>
      <dc:creator>marutiprasad</dc:creator>
      <dc:date>2012-01-19T12:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: try/catch in javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/try-catch-in-javascript/m-p/253253#M206383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The execute() exception probably marks the whole transaction for rollback, so your error content never gets committed to the repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's better to return an error HTTP response or, if that's not practical, at least raise an error in the logs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 15:19:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/try-catch-in-javascript/m-p/253253#M206383</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2012-01-19T15:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: try/catch in javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/try-catch-in-javascript/m-p/253254#M206384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;agreed your suggestion, but what if i want to update a log file, like a simple text file which is there is company home/logs. I can't update the same right?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 09:46:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/try-catch-in-javascript/m-p/253254#M206384</guid>
      <dc:creator>marutiprasad</dc:creator>
      <dc:date>2012-01-20T09:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: try/catch in javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/try-catch-in-javascript/m-p/253255#M206385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The update would also be rolled back, yes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 10:10:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/try-catch-in-javascript/m-p/253255#M206385</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2012-01-20T10:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: try/catch in javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/try-catch-in-javascript/m-p/253256#M206386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I really want to catch an error in javascript and ignore it, is it feasible? I tried using the try/catch statement, but seems that it does not work. The script still exist with error so the content got "roll back".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Aug 2015 16:57:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/try-catch-in-javascript/m-p/253256#M206386</guid>
      <dc:creator>gordon_liang</dc:creator>
      <dc:date>2015-08-16T16:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: try/catch in javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/try-catch-in-javascript/m-p/253257#M206387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have tried &amp;amp; never managed it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 08:12:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/try-catch-in-javascript/m-p/253257#M206387</guid>
      <dc:creator>rjohnson</dc:creator>
      <dc:date>2015-08-17T08:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: try/catch in javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/try-catch-in-javascript/m-p/253258#M206388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There may be one or two situations when you can catch an exception in alfresco java script and ignore the error.&amp;nbsp;&amp;nbsp; However that is very much an edge case and could be considered a bug.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The rule when using the alfresco or Java API is that exceptions are fatal to the transaction.&amp;nbsp;&amp;nbsp; You may decorate the exception, by throwing another exception but you can't "ignore" one, your transaction is rolling back.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 11:13:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/try-catch-in-javascript/m-p/253258#M206388</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2015-08-17T11:13:00Z</dc:date>
    </item>
  </channel>
</rss>

