> For the complete documentation index, see [llms.txt](https://docs.tailent.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tailent.com/getting-started/tap-studio/transitions/exception-transitions.md).

# Exception transitions

Exception transitions visually differ from normal transitions. They are represented by a dashed line instead of a solid line and are also displayed in a different color.

Typically, when a sequence throws an error, it stops execution. However, if an exception transition connects it to another sequence, the operation will continue and proceed to the linked transition.

<figure><img src="/files/s7QAbKsi3ysnQjgTXyy1" alt=""><figcaption><p>In this example, if Sequence 1 throws an error, the robot will proceed to the Sequence 3 instead of Sequence 2.</p></figcaption></figure>

Like normal transitions, exception transitions also allow conditions to be specified within them.

A sequence can contain multiple exception transitions for precise control over the workflow:

<figure><img src="/files/bHrmdkolyVKHd6DvZBIF" alt=""><figcaption><p>In this example, if either Click Control or Rename Sheet throws an error, we can create a transition for either of them.</p></figcaption></figure>

### Useful conditions:

LastError.ActionMessage -> Contains the message of the last error.

LastError.ActionOutcome -> Contains the message showing the outcome of the action: ***True/False***

LastError.Matches("") -> Can be used to check if an error matches a given string.
