231232233234235236237238
public void onError(SourcePosition pos, Localizable msg) throws ModelerException { if (messager != null) { messager.printError(pos, localizer.localize(msg)); } else { throw new ModelerException(msg); } }
259260261262263264265266267
// class members writeMembers(reqCls, reqMembers); writeMembers(resCls, resMembers); } catch (Exception e) { throw new ModelerException("modeler.nestedGeneratorError",e); } return true; }
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); } }