# Raise Exception Message

**URL:** https://www.finalbuilder.com/forums/t/raise-exception-message/4469
**Category:** Discussion
**Created:** [March 31, 2011, 10:12am UTC](https://www.finalbuilder.com/forums/t/raise-exception-message/4469 "2011-03-31T10:12:58Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 31, 2011, 10:12am UTC](https://www.finalbuilder.com/forums/t/raise-exception-message/4469/1 "2011-03-31T10:12:58Z")

</div>

I&nbsp;have a Raise Exception&nbsp;event&nbsp;with Error Message saying "ABCD&nbsp;Went Wrong". The flow moves to the "On Failure"&nbsp;side which is expected. Is there a way to get/show/view/print this message within the "On Failure"&nbsp;events so the message can be emailed to someone?

---

<div class="post-metadata">

### Author: ![stephen.ryan](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@stephen.ryan](https://www.finalbuilder.com/forums/u/stephen.ryan)
#### Post date: [April 4, 2011, 6:09am UTC](https://www.finalbuilder.com/forums/t/raise-exception-message/4469/2 "2011-04-04T06:09:51Z")

</div>

Hi

Within the OnFailure action list you can use the Export Log action and export only actions in error to an xml file, which you can read using the XML actions.

I have attached an example project of how you can do this.

Regards

Steve

[ReadLog.atz3](https://www.finalbuilder.com/forums/uploads/default/original/2X/0/027304b5f588a57805c93f0ca190832f62728952.atz3) (4.281 KB)

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [April 4, 2011, 6:24am UTC](https://www.finalbuilder.com/forums/t/raise-exception-message/4469/3 "2011-04-04T06:24:33Z")

</div>

Thanks.. I thought maybe there is an easier&nbsp;"catch" action or something that I am missing. Although your solution works it's too much work

---

<div class="post-metadata">

### Author: ![stephen.ryan](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@stephen.ryan](https://www.finalbuilder.com/forums/u/stephen.ryan)
#### Post date: [April 5, 2011, 12:28pm UTC](https://www.finalbuilder.com/forums/t/raise-exception-message/4469/4 "2011-04-05T12:28:33Z")

</div>

Hi   
  
 The example I attached can be used to catch unexpected errors. If there is a particular set of actions that may fail due to a reason beyond your control (such as an offline resource) then you can wrap these in a try/catch block and use the catch action to store the error details in a variable.   
  
 Regards   
 Steve

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [April 7, 2011, 10:16am UTC](https://www.finalbuilder.com/forums/t/raise-exception-message/4469/5 "2011-04-07T10:16:43Z")

</div>

I tested your solution and it works great to catch any errors and report them! However in this case I&nbsp;was just looking to catch errors that are explicitly thrown with the "Raise Exception"&nbsp;in the "Main"&nbsp;event with a one line code
