Multiple choice technology programming languages

A scope within a BPEL process has a catch block for Remote Fault and a catch block for Binding Fault followed by a catchAll block in that order. Which of the following statements are true?

  1. . If a Remote Fault occurs, it will be caught by the catchAll block

  2. . If a Binding Fault occurs, it will be caught by the catchAll block

  3. . If a Remote Fault occurs, it will be caught first by the Remote Fault catch block and then by the catchAll block

  4. . All faults will always be caught by the catchAll block

  5. None of the above

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

In BPEL, fault handlers execute like try-catch blocks - only the first matching catch block executes, not all of them. Specific catches for Remote Fault and Binding Fault take precedence over the generic catchAll. Option C is wrong because BPEL doesn't chain exception handlers - once a fault is caught by its specific handler, processing stops there.