private static boolean mightInheritFromException ( ClassDescriptor d ) { while ( d != null ) { try { if ( "java.lang.Exception" . equals ( d . getDottedClassName ( ) ) ) { return true ; } XClass classNameAndInfo = Global . getAnalysisCache ( ) . getClassAnalysis ( XClass . class , d ) ; d = classNameAndInfo . getSuperclassDescriptor ( ) ; } catch ( CheckedAnalysisException e ) { return true ; // don't know } } return false ; }
Determine whether the class descriptor ultimately inherits from java . lang . Exception