cancel
Showing results for 
Search instead for 
Did you mean: 

Total record count

Former Member
0 Kudos

Hi

I am doing total record count using static function Count .. if count is not equal the i wanna through an exception

i need code for throwing an exception in UDF

venkat

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

You can use these..

XI/PI: Throwing Generic Exceptions from any type of Mapping

/people/michal.krawczyk2/blog/2007/04/26/xipi-throwing-generic-exceptions-from-any-type-of-mapping

Throwing Smart Exceptions in XI Graphical Mapping

/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping

Thanks

Former Member
0 Kudos

Hi Venkatesh,

I am putting some UDF code here for raising exception. Take this an example and write your UDF.

int AmountValue =Integer.parseInt( Amount);

try{

if(AmountValue>0)

{

create record;

}

else throw new Throwable("Records not greater than 0...");

}catch(Throwable t){}

Warm Regards,

Vijay