I have a PL/SQL procedure where I call
RAISE_APPLICATION_ERROR (-20001, 'Illegal id');
if something goes bad.
This seems to work, because the procedure quits and throws the error when it should.
I call this procedure using
simpleJdbcCall.execute(myargs)
But when I catch the exception, it is of type DataAccessException. The cause is ORA-01403: no data found
There doesn't seem to be a way for me to get the number or message from my RAISE_APPLICATION_ERROR call. How can I get these values?