Examples of MorphlineCompilationException


Examples of org.kitesdk.morphline.api.MorphlineCompilationException

      String protoClassName = getConfigs().getString(config, "protobufClass");
      try {
        protobufClass = Class.forName(protoClassName);
      } catch (ClassNotFoundException e) {
        throw new MorphlineCompilationException("Class not found", config, e);
      }

      String outputClassName = getConfigs().getString(config, "outputClass");
      outputClass = getInnerClass(protobufClass, outputClassName);
      if (outputClass == null) {
        throw new MorphlineCompilationException("Output class '" + outputClassName + "' does not exist in class '"
            + protoClassName + "'.", config);
      }

      try {
        parseMethod = outputClass.getMethod(PARSE_FROM, InputStream.class);
      } catch (NoSuchMethodException e) {
        throw new MorphlineCompilationException("Method '" + PARSE_FROM + "' does not exist in class '" + outputClassName
            + "'.", config, e);
      } catch (SecurityException e) {
        throw new MorphlineCompilationException("Method '" + PARSE_FROM + "' is probably not public in class '"
            + outputClassName + "'.", config, e);
      }

      validateArguments();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.