Knowing you exception class name

To know what is your exception class name, in case you want to have a more specific catch.

1
2
3
4
        } catch (Exception e){
            LOG.error("SQL error when processing " + requestId+". Exception class:"+ e.getClass().getCanonicalName());
            throw(e);
        }
This entry was posted in java and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


seven + = 12