/// <summary> /// Builds a message for the specified CSS parsing exception. /// </summary> /// <param name="exception">the CSS parsing exception to build a message for</param> /// <returns>a message for the specified CSS parsing exception</returns> private String BuildMessage(CSSParseException exception) { String uri = exception.URI; int line = exception.LineNumber; int col = exception.ColumnNumber; if (null == uri) { return "[" + line + ":" + col + "] " + exception.getMessage(); } return "'" + uri + "' [" + line + ":" + col + "] " + exception.getMessage(); }
/// <summary> /// Builds a message for the specified CSS parsing exception. /// </summary> /// <param name="exception">the CSS parsing exception to build a message for</param> /// <returns>a message for the specified CSS parsing exception</returns> private String BuildMessage(CSSParseException exception) { String uri = exception.URI; int line = exception.LineNumber; int col = exception.ColumnNumber; if (null == uri) { return("[" + line + ":" + col + "] " + exception.getMessage()); } return("'" + uri + "' [" + line + ":" + col + "] " + exception.getMessage()); }
/// <summary> /// {@inheritDoc} /// </summary> /// <param name="exception"></param> public void Warning(CSSParseException exception) { LOG.Warn("CSS warning: " + BuildMessage(exception)); }
/// <summary> /// {@inheritDoc} /// </summary> /// <param name="exception"></param> public void FatalError(CSSParseException exception) { LOG.Warn("CSS fatal error: " + BuildMessage(exception)); }
/// <summary>{@inheritDoc}/// </summary> /// <param name="exception"></param> public void error(CSSParseException exception) { LOG.Warn("CSS error: " + BuildMessage(exception)); }
/** * {@inheritDoc} */ public void warning(CSSParseException exception) { // Ignore. }
/** * {@inheritDoc} */ public void FatalError(CSSParseException exception) { // Ignore. }