Package net.sourceforge.annovalidator.validation.exception

Examples of net.sourceforge.annovalidator.validation.exception.ValidatorMethodException


                    + "(" + argBuffer.toString() + ")");
            }
            return validatorClass.getMethod(validatorDescriptor
                    .validatorMethodName(), validatorMethodArguments);
        } catch (SecurityException e) {
            throw new ValidatorMethodException(validatorDescriptor
                    .validatorMethodName(), validatorMethodArguments, e);
        } catch (NoSuchMethodException e) {
            throw new ValidatorMethodException(validatorDescriptor
                    .validatorMethodName(), validatorMethodArguments, e);
        }
    }
View Full Code Here


        } catch (IllegalArgumentException e) {
            Class<?>[] argumentTypes = new Class<?>[arguments.length];
            for (int i = 0; i < arguments.length; i++) {
                argumentTypes[i] = arguments[i].getClass();
            }
            throw new ValidatorMethodException(validatorMethod.getName(), argumentTypes, e);
        } catch (IllegalAccessException e) {
            throw new ValidatorMethodException(validatorMethod.getName(),
                    fieldValidator, arguments, e);
        } catch (InvocationTargetException e) {  
            if (e.getCause() instanceof ReportedValidationException) {
                throw (ReportedValidationException) e.getCause();
            }
            throw new ValidatorMethodException(validatorMethod.getName(),
                    fieldValidator, arguments, (Exception) e.getCause());
        }
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.annovalidator.validation.exception.ValidatorMethodException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.