Hi,

If you throw a SQLException in the function, then it will not be
converted. Example:

drop alias test;
create alias test as 'int test() throws SQLException { throw new
SQLException("Error Parsing..."); }';
call test();

This will throw the exception "Error Parsing...". If you throw any
other type of exception in the function, it will be converted to the
generic "Exception calling user-defined function".

I will document that.

> This approach does not help resolve the real need.

I think it does. In my view RAISE is the same as "throw new SQLException".

Regards,
Thomas

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to