public static boolean checkProcessWatchdog ( final Watchdog watchdogAnnotation , final ProceedingJoinPoint proceedingJoinPoint , final Throwable throwable ) { // check if watchdog aspect processing is deactivated by annotation if ( watchdogAnnotation != null && watchdogAnnotation . isActive ( ) ) { // checks if throws annotations must be suppressed boolean throwableIsPartOfThrowsDeclaration = WatchdogUtils . checkIfMethodThrowsContainsPassedException ( proceedingJoinPoint , throwable ) ; if ( ! watchdogAnnotation . suppressThrowsExceptions ( ) || ( watchdogAnnotation . suppressThrowsExceptions ( ) && ! throwableIsPartOfThrowsDeclaration ) ) { return true ; } } return false ; }
Checks whether the exception should be processed or not .