/** * Sends an error message from the ANTLR tool to the Maven Log sink. * @param toolMessage */ public void error(ToolMessage toolMessage) { log.error(toolMessage.toString()); } }
public static void error(int msgID, Object arg, Object arg2) { getErrorState().errors++; getErrorState().errorMsgIDs.add(msgID); getErrorListener().error(new ToolMessage(msgID, arg, arg2)); }
public String toString() { StringTemplate st = getMessageTemplate(); if ( arg!=null ) { st.setAttribute("arg", arg); } if ( arg2!=null ) { st.setAttribute("arg2", arg2); } if ( e!=null ) { st.setAttribute("exception", e); st.setAttribute("stackTrace", e.getStackTrace()); } return super.toString(st); } }
public static void error(int msgID, Object arg, Throwable e) { getErrorState().errors++; getErrorState().errorMsgIDs.add(msgID); getErrorListener().error(new ToolMessage(msgID, arg, e)); }
public String toString() { StringTemplate st = getMessageTemplate(); if ( arg!=null ) { st.setAttribute("arg", arg); } if ( arg2!=null ) { st.setAttribute("arg2", arg2); } if ( e!=null ) { st.setAttribute("exception", e); st.setAttribute("stackTrace", e.getStackTrace()); } return super.toString(st); } }
public static void error(int msgID, Object arg, Throwable e) { getErrorState().errors++; getErrorState().errorMsgIDs.add(msgID); getErrorListener().error(new ToolMessage(msgID, arg, e)); }
@Override public void error(ToolMessage msg) { String outputMsg = msg.toString(); if (formatWantsSingleLineMessage()) { outputMsg = outputMsg.replaceAll("\n", " "); } System.err.println(outputMsg); } };
@Override public String toString() { ST st = getMessageTemplate(); if ( arg!=null ) { st.add("arg", arg); } if ( arg2!=null ) { st.add("arg2", arg2); } if ( e!=null ) { st.add("exception", e); st.add("stackTrace", e.getStackTrace()); } return super.toString(st); } }
public static void error(int msgID, Object arg, Throwable e) { getErrorState().errors++; getErrorState().errorMsgIDs.add(msgID); getErrorListener().error(new ToolMessage(msgID, arg, e)); }
public void error(ToolMessage msg) { String outputMsg = msg.toString(); if (formatWantsSingleLineMessage()) { outputMsg = outputMsg.replaceAll("\n", " "); } System.err.println(outputMsg); } };
@Override public String toString() { ST st = getMessageTemplate(); if ( arg!=null ) { st.add("arg", arg); } if ( arg2!=null ) { st.add("arg2", arg2); } if ( e!=null ) { st.add("exception", e); st.add("stackTrace", e.getStackTrace()); } return super.toString(st); } }
public static void error(int msgID) { getErrorState().errors++; getErrorState().errorMsgIDs.add(msgID); getErrorListener().error(new ToolMessage(msgID)); }
@Override public void error(ToolMessage msg) { String outputMsg = msg.toString(); if (formatWantsSingleLineMessage()) { outputMsg = outputMsg.replaceAll("\n", " "); } System.err.println(outputMsg); } };
public static void error(int msgID, Object arg, Throwable e) { getErrorState().errors++; getErrorState().errorMsgIDs.add(msgID); getErrorListener().error(new ToolMessage(msgID, arg, e)); }
public void error(ToolMessage msg) { String outputMsg = msg.toString(); if (formatWantsSingleLineMessage()) { outputMsg = outputMsg.replaceAll("\n", " "); } System.err.println(outputMsg); } };
public static void error(int msgID, Object arg, Object arg2) { getErrorState().errors++; getErrorState().errorMsgIDs.add(msgID); getErrorListener().error(new ToolMessage(msgID, arg, arg2)); }
public void error(ToolMessage msg) { errors.add(msg); if(forwardListener != null) forwardListener.error(msg); print(msg.toString(), Console.LEVEL_ERROR); }
public static void error(int msgID, Throwable e) { getErrorState().errors++; getErrorState().errorMsgIDs.add(msgID); getErrorListener().error(new ToolMessage(msgID,e)); }
public static void error(int msgID, Object arg) { getErrorState().errors++; getErrorState().errorMsgIDs.add(msgID); getErrorListener().error(new ToolMessage(msgID, arg)); }
public static void error(int msgID, Object arg, Object arg2) { getErrorState().errors++; getErrorState().errorMsgIDs.add(msgID); getErrorListener().error(new ToolMessage(msgID, arg, arg2)); }