How to get the error information of sql running database in java

Use e.getMessage ()

You can get the specific oracle prompt information you want.

For example: ora-000234, xxxxxxxx

Then you can analyze these strings and handle them by yourself against the related error number documents of ORACLE.