224225226227228229230231
public void onError(String message) { if (messager != null) { messager.printError(message); throw new AbortException(); } else { throw new ModelerException(message); } }
234235236237238239240241
public void onError(SourcePosition pos, Localizable msg) throws ModelerException { if (messager != null) { messager.printError(pos, localizer.localize(msg)); } else { throw new ModelerException(msg); } }
304305306307308309310311312
// class members writeMembers(reqCls, reqMembers); writeMembers(resCls, resMembers); } catch (Exception e) { throw new ModelerException("modeler.nestedGeneratorError",e); } return true; }
221222223224225226227228
231232233234235236237238
259260261262263264265266267
342343344345346347348349350
297298299300301302303304
public void processError(String message) { if (isCommandLineInvocation) { processingEnv.getMessager().printMessage(Diagnostic.Kind.ERROR, message); throw new AbortException(); } else { throw new ModelerException(message); } }
306307308309310311312313
@Override public void processError(String message, Element element) { if (isCommandLineInvocation) { processingEnv.getMessager().printMessage(Diagnostic.Kind.ERROR, message, element); } else { throw new ModelerException(message); } }