OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

wsbpel message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Q: Location of rethrow


Hi,

I have a question regarding where we can place <rethrow>.

The current specification says:
  <rethrow> activity can be used ONLY within a fault handler
  (i.e. <catch> and <catchAll> elements).

Therefore, I think the following is legal:
  <faulthandlers>
    <catch name="FH1" faultName="x:foo">
      <sequence>
        ...
        <rethrow/>
      </sequence>
    </catch>
  </faultHandlers>

But I am not sure about the following:

  <faulthandlers>
    <catch name="FH1" faultName="x:foo">
      <sequence>
        ...
        <scope>
          <faulthandlers>
            <catch name="FH2" faultName="x:foo">
            ...
            </catch>
          </faultHandlers>
          <rethrow/>
        </scope>
      </sequence>
    </catch>
  </faultHandlers>

Q1: Is it legal to place the <rethrow> there?

Q2: Assuming the answer to Q1 is yes,
    will FH2 catch the rethrown fault?

Yuzo Fujishima
NEC Corporation



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]