Thursday, January 19, 2012

Generic UDF for ThrowException in Graphical Mapping


3 input variables.
Input
msg1
msg2.

___________________________________________________________
public String Generic_ThrowException(String input, String Msg1, String msg2, Container container) throws StreamTransformationException{
int length = input.length();

if( length <= 0 )
{

throw new RuntimeException("Error :  " + Msg1 + msg2);
}
else
{
return input;
}
}
___________________________________________________________

No comments:

Post a Comment