Examples of Kite9ProcessingException


Examples of org.kite9.framework.common.Kite9ProcessingException

    } else if (o instanceof NounPart){
          return getId(((NounPart)o).getRepresented());
    } else if (o instanceof Object) {
        return getDiagramEntityId(o.getClass().toString());
    } else {
      throw new Kite9ProcessingException("Could not get id for " + o.getClass().toString());
    }
  }
View Full Code Here

Examples of org.kite9.framework.common.Kite9ProcessingException

    if (m instanceof Field) {
      return (((Field)m).getGenericType());
    } else if (m instanceof Method) {
      return (((Method)m).getGenericReturnType());
    } else {
      throw new Kite9ProcessingException("AccessibleValue return type only works with field or method: "+m);
    }
  }
View Full Code Here

Examples of org.kite9.framework.common.Kite9ProcessingException

      Method m2 = a.getClass().getDeclaredMethod(field);
      Object o = m2.invoke(a);
      if ((o.getClass().isArray()) && (Enum.class.isAssignableFrom(o.getClass().getComponentType()))) {
        return (Enum<?>[]) o;
      } else {
        throw new Kite9ProcessingException("Was expecting enumeration array for " + field + " on " + annotation
            + " but was " + o.getClass());
      }
    } catch (Exception e) {
      throw new Kite9ProcessingException("Could not get annotation values for " + m + " with field " + field, e);
    }
  }
View Full Code Here

Examples of org.kite9.framework.common.Kite9ProcessingException

  private SimpleNoun checkSimpleNoun(NounPart np) {
    if (np instanceof SimpleNoun) {
      return (SimpleNoun) np;
    } else {
      throw new Kite9ProcessingException(
          "Noun factory must create a SimpleNoun for the FiniteStateMachineFormat" + np);
    }
  }
View Full Code Here

Examples of org.kite9.framework.common.Kite9ProcessingException

          InputStream is = getRepository().retrieve(id, np, ext);
          ByteArrayOutputStream baos = new ByteArrayOutputStream();
          RepositoryHelp.streamCopy(is, baos, true);
          String problemText = baos.toString();
          // an exception was thrown - throw it up.
          throw new Kite9ProcessingException("An exception occurred in processing the work item:  "+i.getSubjectId()+" "+i.getName()+"\n"+problemText);
        }
       
      }
     
      successful++;

    } catch (IOException e) {
      failed ++;
      throw new Kite9ProcessingException("Could not process server response: " + e);
    } finally {
      try {
        OutputStream fos = getRepository().store(i.getSubjectId(), i.getName(), "xml");
        XMLHelper xh = new XMLHelper();
        String xml = xh.toXML(i);
        OutputStreamWriter w = new OutputStreamWriter(fos);
        w.write(xml);
        w.close();
      } catch (IOException e) {
        throw new Kite9ProcessingException("Could not store request XML in local repository: " + e);
      }
    }
  }
View Full Code Here

Examples of org.kite9.framework.common.Kite9ProcessingException

        int at = m.end();
        os.write(input.substring(cursor, at));
        processClassLevelDoc(cl, r.getFile(), os, mods);
        cursor = at;
      } else {
        throw new Kite9ProcessingException("Could not find string: \"" + classDocPattern + "\" in "
            + r.getFilename());
      }

      // ok, next up, match any methods
      String methodDocPattern = methodDocPattern();
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.