code: public static boolean checkIfMethodThrowsContainsPassedException(final ProceedingJoinPoint proceedingJoinPoint, Throwable thrownException) {
  
          if (proceedingJoinPoint == null || thrownException == null) {
              return false;
          }
  
          Class[] throwsClassesFromMethodSignature = getDefinedThrowsFromMethodSignature(proceedingJoinPoint);
          return checkClassIsDefinedInThrowsException(throwsClassesFromMethodSignature, thrownException);
      }
docs: 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