Package com.thoughtworks.paranamer

Examples of com.thoughtworks.paranamer.ParameterNamesNotFoundException


      if (methodOrConstructor instanceof Method) {
        Class<?> declaringClass = ((Method) methodOrConstructor).getDeclaringClass();
        try {
          visitJavaFile(declaringClass);
        } catch (Exception e) {
          throw new ParameterNamesNotFoundException(
              "Error while trying to read parameter names from the Java file which contains the declaration of "
                  + declaringClass.getName(), e);
        }

        result = cache.get(methodOrConstructor);

        if (result == null && throwExceptionIfMissing) {
          throw new ParameterNamesNotFoundException(
              "Cannot retrieve parameter names for method "
                  + methodOrConstructor.toString());
        }
      } else {
        throw new UnsupportedOperationException("Not managed type : "
View Full Code Here


      String className = packageName + "." + currentClassName.substring(1);

      try {
        return Class.forName(className);
      } catch (ClassNotFoundException e) {
        throw new ParameterNamesNotFoundException(
            "Error while trying to retrieve class " + className + " :", e);
      }
    };
View Full Code Here

TOP

Related Classes of com.thoughtworks.paranamer.ParameterNamesNotFoundException

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.