public static Class [ ] getDefinedThrowsFromMethodSignature ( final ProceedingJoinPoint proceedingJoinPoint ) { if ( proceedingJoinPoint == null ) { return new Class [ 0 ] ; } // get watchdog annotation from method MethodSignature methodSignature = ( MethodSignature ) proceedingJoinPoint . getSignature ( ) ; return methodSignature . getMethod ( ) . getExceptionTypes ( ) ; }
Gets all Exceptions declared at the throws part of the method signature .