public static Type fromExceptionSet ( ExceptionSet exceptionSet ) throws ClassNotFoundException { Type commonSupertype = exceptionSet . getCommonSupertype ( ) ; if ( commonSupertype . getType ( ) != Const . T_OBJECT ) { return commonSupertype ; } ObjectType exceptionSupertype = ( ObjectType ) commonSupertype ; String className = exceptionSupertype . getClassName ( ) ; if ( "java.lang.Throwable" . equals ( className ) ) { return exceptionSupertype ; } return new ExceptionObjectType ( className , exceptionSet ) ; }
Initialize object from an exception set .