/* Holds a list of errorHandlers */
List<ErrorHandlerData> errorHandlerList = new ArrayList<ErrorHandlerData>();
/* Find the class level annotations. */
Class targetClass = targetMethod.getDeclaringClass();
ErrorHandlers errorHandlers = (ErrorHandlers) targetClass.getAnnotation(ErrorHandlers.class);
addToList(errorHandlers, errorHandlerList);
/* See if there is a single error handler present at the class level if so add it to the list. */
ErrorHandler errorHandler = (ErrorHandler) targetClass.getAnnotation(ErrorHandler.class);
addToList(errorHandlerList, errorHandler);