Package org.htmlunit
Class DefaultCssErrorHandler
- java.lang.Object
-
- org.htmlunit.DefaultCssErrorHandler
-
- All Implemented Interfaces:
java.io.Serializable
,org.htmlunit.cssparser.parser.CSSErrorHandler
public class DefaultCssErrorHandler extends java.lang.Object implements org.htmlunit.cssparser.parser.CSSErrorHandler, java.io.Serializable
HtmlUnit's default implementation ofCSSErrorHandler
, which logs all CSS problems.- See Also:
SilentCssErrorHandler
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.commons.logging.Log
LOG
Logging support.
-
Constructor Summary
Constructors Constructor Description DefaultCssErrorHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.lang.String
buildMessage(org.htmlunit.cssparser.parser.CSSParseException exception)
Builds a message for the specified CSS parsing exception.void
error(org.htmlunit.cssparser.parser.CSSParseException exception)
void
fatalError(org.htmlunit.cssparser.parser.CSSParseException exception)
void
warning(org.htmlunit.cssparser.parser.CSSParseException exception)
-
-
-
Method Detail
-
error
public void error(org.htmlunit.cssparser.parser.CSSParseException exception)
- Specified by:
error
in interfaceorg.htmlunit.cssparser.parser.CSSErrorHandler
-
fatalError
public void fatalError(org.htmlunit.cssparser.parser.CSSParseException exception)
- Specified by:
fatalError
in interfaceorg.htmlunit.cssparser.parser.CSSErrorHandler
-
warning
public void warning(org.htmlunit.cssparser.parser.CSSParseException exception)
- Specified by:
warning
in interfaceorg.htmlunit.cssparser.parser.CSSErrorHandler
-
buildMessage
private static java.lang.String buildMessage(org.htmlunit.cssparser.parser.CSSParseException exception)
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
-
-