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 *

*


− 1 = five

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>