on 08-09-2007 1:44 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.