contextprovider/aspectj/src/main/java/io/tracee/contextlogger/contextprovider/aspectj/util/WatchdogUtils.java
public static boolean checkIfMethodThrowsContainsPassedException(final ProceedingJoinPoint proceedingJoinPoint, Throwable thrownException) {

        if (proceedingJoinPoint == null || thrownException == null) {
            return false;
        }

        Class[] throwsClassesFromMethodSignature = getDefinedThrowsFromMethodSignature(proceedingJoinPoint);
        return checkClassIsDefinedInThrowsException(throwsClassesFromMethodSignature, thrownException);
    }
public static boolean checkIfMethodThrowsContainsPassedException(final ProceedingJoinPoint proceedingJoinPoint, Throwable thrownException) {

        if (proceedingJoinPoint == null || thrownException == null) {
            return false;
        }

        Class[] throwsClassesFromMethodSignature = getDefinedThrowsFromMethodSignature(proceedingJoinPoint);
        return checkClassIsDefinedInThrowsException(throwsClassesFromMethodSignature, thrownException);
    }
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.

@param proceedingJoinPoint The aspectj join point
@param thrownException The Throwable which must be looked for
@return true if Throwable was found and must be suppressed, otherwise false
Checks whether the passed Throwable is contained in methods throws part .