Package org.kite9.framework.logging

Examples of org.kite9.framework.logging.LogicException


      if (within instanceof Container) {
        return (Container) within;
      } else if (within instanceof Contained) {
        return ((Contained) within).getContainer();
      } else {
        throw new Kite9ProcessingException("Cannot find container for " + within);
      }
    } else {
      // object must exist outside context
      if (within instanceof Contained) {
        return ((Contained) within).getContainer();
      } else {
        throw new Kite9ProcessingException("Cannot find container for " + within);
      }
    }
  }
View Full Code Here


      if (t.getSort() == Type.OBJECT) {
        String className2 = t.getInternalName();
        addDependency(className, model, className2);
      }
    } catch (RuntimeException e) {
      throw new Kite9ProcessingException("Could not handle type: " + t.getDescriptor(), e);
    }
  }
View Full Code Here

            return new AnnotatedNounPartImpl(np, label);
          }
        }
      }

      throw new LogicException("Should not unravel with collection unraveller !" + to);
    }
View Full Code Here

      } else if ((to instanceof Class<?>) && (((Class<?>) to).isArray())) {
        NounPart np = generateNoun(((Class<?>) to).getComponentType(), a);
        return new AnnotatedNounPartImpl(np, "array of ");
      }

      throw new LogicException("Should not unravel with array unraveller !" + to);
    }
View Full Code Here

          }
          in.close();
          out.close();
      }
    } catch (IOException e) {
      throw new LogicException("Couldn't copy dir!");
    }
    }
View Full Code Here

    try {
      FileWriter fw = new FileWriter(f);
      fw.write(contents);
      fw.close();
    } catch (IOException e) {
      throw new LogicException("Could not save output: " + f.toString(), e);
    }
  }
View Full Code Here

  public static void renderToFile(Class<?> theTest, String subtest, String item, BufferedImage bi) {
    File f = prepareFileName(theTest, subtest, item);
    try {
      ImageIO.write(bi, "PNG", f);
    } catch (IOException e) {
      throw new LogicException("Could not save output: " + f.toString(), e);
    }
  }
View Full Code Here

           
          }
           
            return new String[] { fromid, toid,  "", "", ""  };             
          }
          throw new LogicException("Type not connected: "+o);
      }

      public String[] getHeaders() {
        return new String[] { "From ID", "To ID", "Length", "Turns", "Crosses"};
      }
View Full Code Here

              double height = bounds.getHeight();
              return new String[] { id, ""+width, ""+height, ""+connections };             
            }
       
          }
          throw new LogicException("Type not connected: "+o);
      }

      public String[] getHeaders() {
        return new String[] { "ID", "Width", "Height", "Connections" };
      }
View Full Code Here

    this.id = createID();
  }

  public AbstractIdentifiableDiagramElement(String id) {
    if (id==null) {
      throw new LogicException("Cannot create diagram element with null id");
    }
    this.id = id;
  }
View Full Code Here

TOP

Related Classes of org.kite9.framework.logging.LogicException

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.