Page 1 of 1

Exception Handling

Posted: Thu May 26, 2022 4:05 pm
by iDevDaly
When I run one of the JDBC_ExecPrep* functions, and it returns a result code of -1, how do I get more information about the root cause of the exception? Can we call the Java getMessage function from our program where we're calling the JDBCR4 subprocedure?

Re: Exception Handling

Posted: Sun May 29, 2022 3:35 am
by Scott Klement
There should be a message in the job log. You'll want to look at the details of the message -- it should be an SQLException, and the details should tell you what caused the exception.

Re: Exception Handling

Posted: Tue May 31, 2022 6:14 pm
by iDevDaly
Thanks. I'll look into it.