Where can I look up DB2 and Websphere exceptions, to know what classes they extend?

Example: I have some DB-agnostic code with a Catch clause for java.sql.SQLException.

I see, in a call trace, com.ibm.ejs.cm.portability.DuplicateKeyException.

Does the latter class extend the former? Where is this type of information to be found?