C9530-001 · Question #125
Which node can be used to capture failures for a sequence of nodes?
The correct answer is C. TryCatch Node. If you do not wire a Failure terminal, a failure in the node is converted into an exception which is thrown from the node. You can also use the Trace node to provide information in error handling in your message flows. For example, you can use this node to record failures in…
Question
Which node can be used to capture failures for a sequence of nodes?
Options
- ATrace Node
- BCollector Node
- CTryCatch Node
- DPassthrough Node
How the community answered
(40 responses)- A13% (5)
- B8% (3)
- C75% (30)
- D5% (2)
Explanation
If you do not wire a Failure terminal, a failure in the node is converted into an exception which is thrown from the node. You can also use the Trace node to provide information in error handling in your message flows. For example, you can use this node to record failures in processing because of errors in the content or format of a message. You can prevent the transaction from being rolled back, and control the extent to which message changes are reversed, by including a TryCatch node in your message flow. If an exception is thrown beyond the Try terminal of the TryCatch node, then an exception list is propagated to the node's Catch terminal. The inflight message reverts to the state it was in before it reached the Most message flow nodes have a Catch terminal. These nodes are typically at the start of a transaction, where an uncaught exception would cause a rollback. In these nodes, the Catch terminal behaves as though a TryCatch node was wired directly to the Out terminal. Use the Catch terminal to handle any exceptions that are thrown beyond the message flow node. Wire the Failure terminal to handle errors within the node itself.
Topics
Community Discussion
No community discussion yet for this question.