<?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 catch class based exceptions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-class-based-exceptions/m-p/5565360#M1269690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am calling a outbound proxy class from a inbound proxy class. when i dragged the ourbound proxy the below code is inserted by system directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;CALL METHOD oref1-&amp;gt;SEND_OUT&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    OUTPUT = output&lt;/P&gt;&lt;P&gt;    .&lt;/P&gt;&lt;P&gt;CATCH CX_AI_SYSTEM_FAULT .&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to know the difference between writing just &lt;/P&gt;&lt;P&gt;CATCH CX_AI_SYSTEM_FAULT .&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CATCH CX_AI_SYSTEM_FAULT . into objref. where objref refers to exception class CX_AI_SYSTEM_FAULT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how does the system behave in either of the case if exception is raised.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 May 2009 10:35:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-18T10:35:26Z</dc:date>
    <item>
      <title>catch class based exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-class-based-exceptions/m-p/5565360#M1269690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am calling a outbound proxy class from a inbound proxy class. when i dragged the ourbound proxy the below code is inserted by system directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;CALL METHOD oref1-&amp;gt;SEND_OUT&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    OUTPUT = output&lt;/P&gt;&lt;P&gt;    .&lt;/P&gt;&lt;P&gt;CATCH CX_AI_SYSTEM_FAULT .&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to know the difference between writing just &lt;/P&gt;&lt;P&gt;CATCH CX_AI_SYSTEM_FAULT .&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CATCH CX_AI_SYSTEM_FAULT . into objref. where objref refers to exception class CX_AI_SYSTEM_FAULT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how does the system behave in either of the case if exception is raised.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 10:35:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-class-based-exceptions/m-p/5565360#M1269690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T10:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: catch class based exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-class-based-exceptions/m-p/5565361#M1269691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In both cases, no short dump is generated, because the exception is caught. However, no info about the actual error can directly be retrieved like is done in the following example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: lv_message TYPE string,
      lr_error TYPE REF TO cx_sy_zerodivide,
      y TYPE i VALUE 10,
      x TYPE i.

TRY.
    x = y / 0.

  CATCH cx_sy_zerodivide INTO lr_error.
    lv_message = lr_error-&amp;gt;get_text( ).

ENDTRY.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this will only be of interest, when you want to determine the error. If the catch is part of another TRY  ENDTRY block, the error is navigated upwards the chain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this was somehow helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 11:39:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-class-based-exceptions/m-p/5565361#M1269691</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-05-18T11:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: catch class based exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-class-based-exceptions/m-p/5565362#M1269692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you catch into an object reference, you get an instance of the exception which has attributes that you can access.  Look at the exception class in SE24, and you'll see it has: CX_AI_SYSTEM_FAULT CODECONTEXT CODE ERRORTEXT LANGUAGE as attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't catch into an object, then you've simply not got this information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: lx TYPE REF TO CX_AI_SYSTEM_FAULT.
TRY.
  CALL METHOD oref1-&amp;gt;SEND_OUT
  EXPORTING
  OUTPUT = output

  CATCH CX_AI_SYSTEM_FAULT INTO lx
    WRITE: / lx-&amp;gt;ERRORTEXT .
ENDTRY.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 11:40:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-class-based-exceptions/m-p/5565362#M1269692</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-05-18T11:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: catch class based exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-class-based-exceptions/m-p/5565363#M1269693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I couldn't have put it any better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 11:48:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-class-based-exceptions/m-p/5565363#M1269693</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-05-18T11:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: catch class based exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-class-based-exceptions/m-p/5565364#M1269694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been doing some PI work, so I've used this particular exception class quite a bit!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 07:32:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-class-based-exceptions/m-p/5565364#M1269694</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-05-19T07:32:05Z</dc:date>
    </item>
  </channel>
</rss>

