I have a PL/SQL procedure where I call if something goes bad. This seems to work, because the procedure quits and throws the error when it should. I call this procedure using 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