java - Configuring Spring Data error message -


is possible configure spring data return generic error message instead of specific sql error message?

i'm asking because need change system accessing database , when throwing error "giving away" many database information, eg: database version.

you wrap database query in try statement , in catch section output custom generic error message using logger or otherwise.

you further find out exception in particular using 'instanceof' comparitor.

is answer you're looking or misunderstanding question?


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

linux - gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now -

delphi - Disable and change color of node in Treeview -