cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime Exception

Former Member
0 Kudos

Hi

I created the UDF to catch the Runtime Exception.. With that Runtime Exception I want to send an e-mail notification..

how we do that

venkat

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Venkatesh,

In your udf, write the else clause and write some code in else clause which always fails:

eg:

String alwaysfails= new String("somestring");

alwaysfails.substring(0,100);

If exception occurs, then the mapping fails and sends out the alerts.

If alert categories and alert rules are already in place, then it throws the mapping failure alerts. for alert configuration you can get plenty of documentation on help and also in forums.

Regards,

Ravi

henrique_pinto
Active Contributor
0 Kudos

You can trigger alerts from UDFs.

Check this blog: /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function

Regards,

Henrique.