Error messages

When the call of an Easy Mining procedure fails, DB2® returns the error with an error message.
The error message looks like this:
SQL4302N (''Java stored procedure or user-defined function <user-defined  function name>, specific name <specific name> aborted with an exception <exception  name>'')

In most of the cases, the actual message string is truncated. If you want to get the original error message from the Easy Mining procedures, you can call the GetLastError procedure.

With the GetLastError procedure, you can specify several parameters. A question mark (?) in front of a parameter name in the syntax description indicates that the parameter after the question mark is an output parameter. If you want to obtain the information, you must provide a question mark (?) as parameter value in your call.

The GetLastError procedure retrieves the last error message that was issued by an Easy Mining procedure that ran on the same database as the database from which the GetLastError procedure is called.



Feedback | Information roadmap