/** * Deal with any parser exceptions not handled by the ErrorHandler interface. * * @param e */ private void parserException(Exception e) { invalidate(e.getMessage()); }
/** * Deal with exceptions passed to the ErrorHandler interface by the parser. */ private void errorHandlerException(SAXParseException e) { String msg = "At line " + e.getLineNumber() + ", column: " + e.getColumnNumber() + " ==> " + e.getMessage(); if (!msg.endsWith("\n")) msg += "\n"; invalidate(msg); }
private void validationProblem(ValidationProblem p) { String msg = "At line " + p.getLine() + ", column: " + p.getColumn() + " ==> " + p.getMessage(); if (!msg.endsWith("\n")) { msg += "\n"; } invalidate(msg); }