/** * Find out how many arguments an entry is required to have. * * @param type A valid catalog entry type. * @return The number of arguments that entry type is required to have. * @throws InvalidCatalogEntryTypeException if the type is invalid. */ public static int getEntryArgCount(int type) throws CatalogException { try { Integer iArgs = (Integer) entryArgs.get(type); return iArgs.intValue(); } catch (ArrayIndexOutOfBoundsException e) { throw new CatalogException(CatalogException.INVALID_ENTRY_TYPE); } }
if (cex.getExceptionType() == CatalogException.UNPARSEABLE) { catalogManager.debug.message(1, "Unparseable catalog: " + RFC2483); } else if (cex.getExceptionType() == CatalogException.UNKNOWN_FORMAT) { catalogManager.debug.message(1, "Unknown catalog format: " + RFC2483);
if (cex.getExceptionType() == CatalogException.INVALID_ENTRY_TYPE) { if (unknownEntry == null) { unknownEntry = new Vector(); } else if (cex.getExceptionType() == CatalogException.INVALID_ENTRY) { catalog.getCatalogManager().debug.message(1, "Invalid catalog entry", token); unknownEntry = null; } else if (cex.getExceptionType() == CatalogException.UNENDED_COMMENT) { catalog.getCatalogManager().debug.message(1, cex.getMessage()); if (cex2.getExceptionType() == CatalogException.UNENDED_COMMENT) { catalog.getCatalogManager().debug.message(1, cex2.getMessage());
parseCatalogFile(catfile); } catch (CatalogException ce) { System.out.println("FIXME: " + ce.toString());
if (cex.getExceptionType() == CatalogException.UNPARSEABLE) { catalogManager.debug.message(1, "Unparseable catalog: " + RFC2483); } else if (cex.getExceptionType() == CatalogException.UNKNOWN_FORMAT) { catalogManager.debug.message(1, "Unknown catalog format: " + RFC2483);
if (cex.getExceptionType() == CatalogException.INVALID_ENTRY_TYPE) { if (unknownEntry == null) { unknownEntry = new Vector(); } else if (cex.getExceptionType() == CatalogException.INVALID_ENTRY) { catalog.getCatalogManager().debug.message(1, "Invalid catalog entry", token); unknownEntry = null; } else if (cex.getExceptionType() == CatalogException.UNENDED_COMMENT) { catalog.getCatalogManager().debug.message(1, cex.getMessage()); if (cex2.getExceptionType() == CatalogException.UNENDED_COMMENT) { catalog.getCatalogManager().debug.message(1, cex2.getMessage());
parseCatalogFile(catfile); } catch (CatalogException ce) { System.out.println("FIXME: " + ce.toString());
/** * Find out how many arguments an entry is required to have. * * @param type A valid catalog entry type. * @return The number of arguments that entry type is required to have. * @throws InvalidCatalogEntryTypeException if the type is invalid. */ public static int getEntryArgCount(int type) throws CatalogException { try { Integer iArgs = (Integer) entryArgs.get(type); return iArgs.intValue(); } catch (ArrayIndexOutOfBoundsException e) { throw new CatalogException(CatalogException.INVALID_ENTRY_TYPE); } }
if (cex.getExceptionType() == CatalogException.UNPARSEABLE) { catalogManager.debug.message(1, "Unparseable catalog: " + RFC2483); } else if (cex.getExceptionType() == CatalogException.UNKNOWN_FORMAT) { catalogManager.debug.message(1, "Unknown catalog format: " + RFC2483);
if (cex.getExceptionType() == CatalogException.INVALID_ENTRY_TYPE) { if (unknownEntry == null) { unknownEntry = new Vector(); } else if (cex.getExceptionType() == CatalogException.INVALID_ENTRY) { catalog.getCatalogManager().debug.message(1, "Invalid catalog entry", token); unknownEntry = null; } else if (cex.getExceptionType() == CatalogException.UNENDED_COMMENT) { catalog.getCatalogManager().debug.message(1, cex.getMessage()); if (cex2.getExceptionType() == CatalogException.UNENDED_COMMENT) { catalog.getCatalogManager().debug.message(1, cex2.getMessage());
parseCatalogFile(catfile); } catch (CatalogException ce) { System.out.println("FIXME: " + ce.toString());
/** * Find out how many arguments an entry is required to have. * * @param type A valid catalog entry type. * @return The number of arguments that entry type is required to have. * @throws InvalidCatalogEntryTypeException if the type is invalid. */ public static int getEntryArgCount(int type) throws CatalogException { try { Integer iArgs = (Integer) entryArgs.get(type); return iArgs.intValue(); } catch (ArrayIndexOutOfBoundsException e) { throw new CatalogException(CatalogException.INVALID_ENTRY_TYPE); } }
catalog.addEntry(ce); } catch (CatalogException cex) { if (cex.getExceptionType() == CatalogException.INVALID_ENTRY_TYPE) { debug.message(1, "Invalid catalog entry type", localName); } else if (cex.getExceptionType() == CatalogException.INVALID_ENTRY) { debug.message(1, "Invalid catalog entry (rbase)", localName); catalog.addEntry(ce); } catch (CatalogException cex) { if (cex.getExceptionType() == CatalogException.INVALID_ENTRY_TYPE) { debug.message(1, "Invalid catalog entry type", localName); } else if (cex.getExceptionType() == CatalogException.INVALID_ENTRY) { debug.message(1, "Invalid catalog entry (roverride)", localName);
if (cex.getExceptionType() == CatalogException.INVALID_ENTRY_TYPE) { if (unknownEntry == null) { unknownEntry = new Vector(); } else if (cex.getExceptionType() == CatalogException.INVALID_ENTRY) { catalog.getCatalogManager().debug.message(1, "Invalid catalog entry", token); unknownEntry = null; } else if (cex.getExceptionType() == CatalogException.UNENDED_COMMENT) { catalog.getCatalogManager().debug.message(1, cex.getMessage()); if (cex2.getExceptionType() == CatalogException.UNENDED_COMMENT) { catalog.getCatalogManager().debug.message(1, cex2.getMessage());
parseCatalogFile(catfile); } catch (CatalogException ce) { System.out.println("FIXME: " + ce.toString());
/** * Find out how many arguments an entry is required to have. * * @param type A valid catalog entry type. * @return The number of arguments that entry type is required to have. * @throws InvalidCatalogEntryTypeException if the type is invalid. */ public static int getEntryArgCount(int type) throws CatalogException { try { Integer iArgs = (Integer) entryArgs.get(type); return iArgs.intValue(); } catch (ArrayIndexOutOfBoundsException e) { throw new CatalogException(CatalogException.INVALID_ENTRY_TYPE); } }
if (cex.getExceptionType() == CatalogException.UNPARSEABLE) { catalogManager.debug.message(1, "Unparseable catalog: " + RFC2483); } else if (cex.getExceptionType() == CatalogException.UNKNOWN_FORMAT) { catalogManager.debug.message(1, "Unknown catalog format: " + RFC2483);
if (cex.getExceptionType() == CatalogException.INVALID_ENTRY_TYPE) { if (unknownEntry == null) { unknownEntry = new Vector(); } else if (cex.getExceptionType() == CatalogException.INVALID_ENTRY) { catalog.getCatalogManager().debug.message(1, "Invalid catalog entry", token); unknownEntry = null; } else if (cex.getExceptionType() == CatalogException.UNENDED_COMMENT) { catalog.getCatalogManager().debug.message(1, cex.getMessage()); if (cex2.getExceptionType() == CatalogException.UNENDED_COMMENT) { catalog.getCatalogManager().debug.message(1, cex2.getMessage());
/** * Lookup an entry type * * @param name The name of the catalog entry type. * @return The type of the catalog entry with the specified name. * @throws InvalidCatalogEntryTypeException if no entry has the * specified name. */ public static int getEntryType(String name) throws CatalogException { if (!entryTypes.containsKey(name)) { throw new CatalogException(CatalogException.INVALID_ENTRY_TYPE); } Integer iType = (Integer) entryTypes.get(name); if (iType == null) { throw new CatalogException(CatalogException.INVALID_ENTRY_TYPE); } return iType.intValue(); }
catalog.addEntry(ce); } catch (CatalogException cex) { if (cex.getExceptionType() == CatalogException.INVALID_ENTRY_TYPE) { debug.message(1, "Invalid catalog entry type", localName); } else if (cex.getExceptionType() == CatalogException.INVALID_ENTRY) { debug.message(1, "Invalid catalog entry (rbase)", localName); catalog.addEntry(ce); } catch (CatalogException cex) { if (cex.getExceptionType() == CatalogException.INVALID_ENTRY_TYPE) { debug.message(1, "Invalid catalog entry type", localName); } else if (cex.getExceptionType() == CatalogException.INVALID_ENTRY) { debug.message(1, "Invalid catalog entry (roverride)", localName);