Package org.htmlunit.cssparser.util
Class ThrowCssExceptionErrorHandler
- java.lang.Object
-
- org.htmlunit.cssparser.util.ThrowCssExceptionErrorHandler
-
- All Implemented Interfaces:
java.io.Serializable,CSSErrorHandler
public class ThrowCssExceptionErrorHandler extends java.lang.Object implements CSSErrorHandler, java.io.Serializable
Helper implementation ofCSSErrorHandler, which throws CssException in case of problems.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ThrowCssExceptionErrorHandlerINSTANCESingleton.
-
Constructor Summary
Constructors Constructor Description ThrowCssExceptionErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(CSSParseException exception)Error.voidfatalError(CSSParseException exception)Fatal error.voidwarning(CSSParseException exception)Warning.
-
-
-
Field Detail
-
INSTANCE
public static final ThrowCssExceptionErrorHandler INSTANCE
Singleton.
-
-
Method Detail
-
error
public void error(CSSParseException exception)
Error.- Specified by:
errorin interfaceCSSErrorHandler- Parameters:
exception- theCSSParseExceptionthat is the reason for the error.
-
fatalError
public void fatalError(CSSParseException exception)
Fatal error.- Specified by:
fatalErrorin interfaceCSSErrorHandler- Parameters:
exception- theCSSParseExceptionthat is the reason for the error.
-
warning
public void warning(CSSParseException exception)
Warning.- Specified by:
warningin interfaceCSSErrorHandler- Parameters:
exception- theCSSParseExceptionthat is the reason for the warning.
-
-