Package org.htmlunit
Class DefaultCssErrorHandler
java.lang.Object
org.htmlunit.DefaultCssErrorHandler
- All Implemented Interfaces:
Serializable,org.htmlunit.cssparser.parser.CSSErrorHandler
public class DefaultCssErrorHandler
extends Object
implements org.htmlunit.cssparser.parser.CSSErrorHandler, Serializable
HtmlUnit's default implementation of
CSSErrorHandler, which logs all CSS problems.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.apache.commons.logging.LogLogging support. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringbuildMessage(org.htmlunit.cssparser.parser.CSSParseException exception) Builds a message for the specified CSS parsing exception.voiderror(org.htmlunit.cssparser.parser.CSSParseException exception) voidfatalError(org.htmlunit.cssparser.parser.CSSParseException exception) voidwarning(org.htmlunit.cssparser.parser.CSSParseException exception)
-
Field Details
-
LOG
private static final org.apache.commons.logging.Log LOGLogging support.
-
-
Constructor Details
-
DefaultCssErrorHandler
public DefaultCssErrorHandler()
-
-
Method Details
-
error
public void error(org.htmlunit.cssparser.parser.CSSParseException exception) - Specified by:
errorin interfaceorg.htmlunit.cssparser.parser.CSSErrorHandler
-
fatalError
public void fatalError(org.htmlunit.cssparser.parser.CSSParseException exception) - Specified by:
fatalErrorin interfaceorg.htmlunit.cssparser.parser.CSSErrorHandler
-
warning
public void warning(org.htmlunit.cssparser.parser.CSSParseException exception) - Specified by:
warningin interfaceorg.htmlunit.cssparser.parser.CSSErrorHandler
-
buildMessage
Builds a message for the specified CSS parsing exception.- Parameters:
exception- the CSS parsing exception to build a message for- Returns:
- a message for the specified CSS parsing exception
-