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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
error
(CSSParseException exception) Error.void
fatalError
(CSSParseException exception) Fatal error.void
warning
(CSSParseException exception) Warning.
-
Field Details
-
INSTANCE
Singleton.
-
-
Constructor Details
-
ThrowCssExceptionErrorHandler
public ThrowCssExceptionErrorHandler()
-
-
Method Details
-
error
Error.- Specified by:
error
in interfaceCSSErrorHandler
- Parameters:
exception
- theCSSParseException
that is the reason for the error.
-
fatalError
Fatal error.- Specified by:
fatalError
in interfaceCSSErrorHandler
- Parameters:
exception
- theCSSParseException
that is the reason for the error.
-
warning
Warning.- Specified by:
warning
in interfaceCSSErrorHandler
- Parameters:
exception
- theCSSParseException
that is the reason for the warning.
-