private static void ensureDirectory(File dir) throws GeneratorException { if (!dir.exists()) { boolean created = dir.mkdirs(); if (!created || !dir.exists()) { throw new GeneratorException("generator.cannot.create.dir", dir.getAbsolutePath()); } } } }
private static void ensureDirectory(File dir) throws GeneratorException { if (!dir.exists()) { boolean created = dir.mkdirs(); if (!created || !dir.exists()) { throw new GeneratorException("generator.cannot.create.dir", dir.getAbsolutePath()); } } } }
private static void ensureDirectory(File dir) throws GeneratorException { if (!dir.exists()) { boolean created = dir.mkdirs(); if (!created || !dir.exists()) { throw new GeneratorException("generator.cannot.create.dir", dir.getAbsolutePath()); } } } }
private static void ensureDirectory(File dir) throws GeneratorException { if (!dir.exists()) { boolean created = dir.mkdirs(); if (!created || !dir.exists()) { throw new GeneratorException("generator.cannot.create.dir", dir.getAbsolutePath()); } } } }
private void registerFault(Fault fault) { try { write(fault); faults.put(fault.getJavaException().getName(), fault.getExceptionClass()); } catch (JClassAlreadyExistsException e) { throw new GeneratorException("generator.nestedGeneratorError",e); } }
private void registerFault(Fault fault) { try { write(fault); faults.put(fault.getJavaException().getName(), fault.getExceptionClass()); } catch (JClassAlreadyExistsException e) { throw new GeneratorException("generator.nestedGeneratorError",e); } }
private void registerFault(Fault fault) { try { write(fault); faults.put(fault.getJavaException().getName(), fault.getExceptionClass()); } catch (JClassAlreadyExistsException e) { throw new GeneratorException("generator.nestedGeneratorError",e); } }
private void registerFault(Fault fault) { try { write(fault); faults.put(fault.getJavaException().getName(), fault.getExceptionClass()); } catch (JClassAlreadyExistsException e) { throw new GeneratorException("generator.nestedGeneratorError",e); } }
p.close(); } catch (Exception e) { throw new GeneratorException( "generator.nestedGeneratorError", e);
p.close(); } catch (Exception e) { throw new GeneratorException( "generator.nestedGeneratorError", e);
p.close(); } catch (Exception e) { throw new GeneratorException( "generator.nestedGeneratorError", e);
p.close(); } catch (Exception e) { throw new GeneratorException( "generator.nestedGeneratorError", e);
throw new GeneratorException( "generator.indentingwriter.charset.cantencode", s);
throw new GeneratorException( "generator.indentingwriter.charset.cantencode", s);
throw new GeneratorException( "generator.indentingwriter.charset.cantencode", s);
throw new GeneratorException( "generator.indentingwriter.charset.cantencode", s);