Mega Code Archive

 
Categories / Java Book / 008 Reflection
 

0435 Get the generic exception types

Class<?>[] getExceptionTypes() Returns an array of Class objects that represent the types of exceptions declared to be thrown by the underlying constructor represented by this Constructor object. Type[] getGenericExceptionTypes() Returns an array of Type objects that represent the exceptions declared to be thrown by this Constructor object.