Module org.htmlunit.cssparser
Package org.htmlunit.cssparser.util
Class ThrowCssExceptionErrorHandler
java.lang.Object
org.htmlunit.cssparser.util.ThrowCssExceptionErrorHandler
- All Implemented Interfaces:
Serializable,CSSErrorHandler
Helper implementation of
CSSErrorHandler, which throws CssException in case of problems.- Author:
- Ronadl Brill
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiderror(CSSParseException exception) Handles an error condition.voidfatalError(CSSParseException exception) Handles a fatal error condition.voidwarning(CSSParseException exception) Handles a warning condition.
-
Field Details
-
INSTANCE
Singleton.
-
-
Constructor Details
-
ThrowCssExceptionErrorHandler
public ThrowCssExceptionErrorHandler()
-
-
Method Details
-
error
Handles an error condition.- Specified by:
errorin interfaceCSSErrorHandler- Parameters:
exception- theCSSParseExceptionthat is the reason for the error
-
fatalError
Handles a fatal error condition.- Specified by:
fatalErrorin interfaceCSSErrorHandler- Parameters:
exception- theCSSParseExceptionthat is the reason for the fatal error
-
warning
Handles a warning condition.- Specified by:
warningin interfaceCSSErrorHandler- Parameters:
exception- theCSSParseExceptionthat is the reason for the warning
-