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) Error.voidfatalError(CSSParseException exception) Fatal error.voidwarning(CSSParseException exception) Warning.
-
Field Details
-
INSTANCE
Singleton.
-
-
Constructor Details
-
ThrowCssExceptionErrorHandler
public ThrowCssExceptionErrorHandler()
-
-
Method Details
-
error
Error.- Specified by:
errorin interfaceCSSErrorHandler- Parameters:
exception- theCSSParseExceptionthat is the reason for the error.
-
fatalError
Fatal error.- Specified by:
fatalErrorin interfaceCSSErrorHandler- Parameters:
exception- theCSSParseExceptionthat is the reason for the error.
-
warning
Warning.- Specified by:
warningin interfaceCSSErrorHandler- Parameters:
exception- theCSSParseExceptionthat is the reason for the warning.
-