Skip to content
Advertisement

Tag: ora-00001

Java – find the first cause of an exception

I need to check if an exception is caused by some database problem. I receive an Exception and check if its cause contains the “ORA” string and return that (something like “ORA-00001”). The problem here is that the exception I receive is nested inside other exceptions, so if I don’t find out if it’s an oracle exception, I have to

Advertisement