public static boolean checkIfMethodThrowsContainsPassedException ( final ProceedingJoinPoint proceedingJoinPoint , Throwable thrownException ) { if ( proceedingJoinPoint == null || thrownException == null ) { return false ; } Class [ ] throwsClassesFromMethodSignature = getDefinedThrowsFromMethodSignature ( proceedingJoinPoint ) ; return checkClassIsDefinedInThrowsException ( throwsClassesFromMethodSignature , thrownException ) ; }
Checks whether the passed Throwable is contained in methods throws part .