<?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 using RAISE EXCEPTION TYPE and not get the runtime error UNCAUGHT_EXCEPTION in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-raise-exception-type-and-not-get-the-runtime-error-uncaught-exception/m-p/347510#M6629</link>
    <description>&lt;P&gt;I'm trying to use RAISE EXCEPTION TYPE within a method.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1205-capture.jpg" /&gt;&lt;/P&gt;&lt;P&gt;But when I test the path I get an UNCAUGHT_EXCEPTION exception run time error.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1206-capture1.jpg" /&gt;&lt;/P&gt;&lt;P&gt;I've googled for solutions and I can't find any answers.  I've seen other code usage doing the same thing in other programs so it works.  I am missing something...&lt;/P&gt;&lt;P&gt;Thank you in advance for help.&lt;/P&gt;&lt;P&gt;Glenn Allen&lt;/P&gt;&lt;P&gt;&amp;lt;personal information removed by moderator&amp;gt;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2016 07:00:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-10-13T07:00:23Z</dc:date>
    <item>
      <title>using RAISE EXCEPTION TYPE and not get the runtime error UNCAUGHT_EXCEPTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-raise-exception-type-and-not-get-the-runtime-error-uncaught-exception/m-p/347510#M6629</link>
      <description>&lt;P&gt;I'm trying to use RAISE EXCEPTION TYPE within a method.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1205-capture.jpg" /&gt;&lt;/P&gt;&lt;P&gt;But when I test the path I get an UNCAUGHT_EXCEPTION exception run time error.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1206-capture1.jpg" /&gt;&lt;/P&gt;&lt;P&gt;I've googled for solutions and I can't find any answers.  I've seen other code usage doing the same thing in other programs so it works.  I am missing something...&lt;/P&gt;&lt;P&gt;Thank you in advance for help.&lt;/P&gt;&lt;P&gt;Glenn Allen&lt;/P&gt;&lt;P&gt;&amp;lt;personal information removed by moderator&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 07:00:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-raise-exception-type-and-not-get-the-runtime-error-uncaught-exception/m-p/347510#M6629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-10-13T07:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: using RAISE EXCEPTION TYPE and not get the runtime error UNCAUGHT_EXCEPTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-raise-exception-type-and-not-get-the-runtime-error-uncaught-exception/m-p/347511#M6630</link>
      <description>&lt;P&gt;From the dump, it looks like you've thrown the error from your method, but nothing further up the call hierarchy has caught it. The calling method must either handle the exception, or throw it up to a higher level.&lt;/P&gt;&lt;P&gt;e.g &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TRY.

object-&amp;gt;get_current_per_yr( .... ).

CATCH zcx_zz_msg into DATA(error).  " Error handling

ENDTRY.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Oct 2016 07:05:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-raise-exception-type-and-not-get-the-runtime-error-uncaught-exception/m-p/347511#M6630</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2016-10-13T07:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: using RAISE EXCEPTION TYPE and not get the runtime error UNCAUGHT_EXCEPTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-raise-exception-type-and-not-get-the-runtime-error-uncaught-exception/m-p/347512#M6631</link>
      <description>&lt;P&gt;See &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_750/en/index.htm?file=abenexceptions_system_response.htm" target="test_blank"&gt;http://help.sap.com/abapdocu_750/en/index.htm?file=abenexceptions_system_response.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Horst&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 10:37:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-raise-exception-type-and-not-get-the-runtime-error-uncaught-exception/m-p/347512#M6631</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2016-10-13T10:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: using RAISE EXCEPTION TYPE and not get the runtime error UNCAUGHT_EXCEPTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-raise-exception-type-and-not-get-the-runtime-error-uncaught-exception/m-p/347513#M6632</link>
      <description>&lt;P&gt;You need to have the TRY.. CATCH .. ENTRY block to catch this exception where the method is being called. If you are not calling this method directly but, this method is called from another method, then all the methods of the call stack needs to have the exception declared in the method signature.&lt;/P&gt;&lt;P&gt;Refer:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="http://zevolving.com/2011/12/class-based-exception/"&gt;Class based exception&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://zevolving.com/2011/12/class-based-exceptions-ii-design-time-consideration/"&gt;Class based exception design time consideration&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 16:23:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-raise-exception-type-and-not-get-the-runtime-error-uncaught-exception/m-p/347513#M6632</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2016-11-02T16:23:12Z</dc:date>
    </item>
  </channel>
</rss>

