From Bright Pattern Documentation
< 3.13:Scenario-builder-reference-guide
Revision as of 22:55, 26 August 2016 by Sasha (talk | contribs) (Created new topic from branched topic Documentation:ServicePattern:scenario-builder-reference-guide:ExceptionHandler:3.12)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
• 3.10 • 3.11 • 3.12 • 3.13 • 3.14 • 3.15 • 3.16 • 3.17 • 3.18

Exception Handler

This block provides an alternative branch the scenario can execute if an exception, a block error, or a disconnection occurs. This allows the scenario to continue executing instead of terminating as it normally would under such circumstances without the Exception Handler block. Use this block in any part of a scenario in which you expect exceptions, block errors, or caller disconnects to ensure continued processing.

The block has two conditional exits: Try and Catch.

  • In the Try conditional exit, enter the sequence of blocks that you predict might generate an exception, block error, or disconnect.
  • In the Catch conditional exit, enter the sequence of blocks that you want the Scenario to execute if an exception, block error, or disconnect occurs during the Try conditional exit.

The block initially executes the Try conditional exit.

  • If an exception, block error, or caller disconnect occurs while executing any block in the Try conditional exit, the scenario executes the Catch conditional exit. After executing the Catch conditional exit, the scenario executes the next block in the flowchart.
  • If no exception, block error, or disconnect occurs, the Scenario does not execute the Catch conditional exit, and instead processes the next block in the flowchart.

After execution, the block stores one of the following values in the Exception interaction property:

  • Disconnect - The caller disconnected.
  • Error - A block error or exception occurred.
  • No - No exception occurred (normal processing).


Settings