Skip to Content
avatar image
Former Member

Total record count

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Aug 09, 2007 at 06:53 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 09, 2007 at 07:04 AM

    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

    Add comment
    10|10000 characters needed characters exceeded