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 ThrowCssExceptionErrorHandler
INSTANCE
Singleton.
-
Constructor Summary
Constructors Constructor Description ThrowCssExceptionErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
error(CSSParseException exception)
Error.void
fatalError(CSSParseException exception)
Fatal error.void
warning(CSSParseException exception)
Warning.
-
-
-
Field Detail
-
INSTANCE
public static final ThrowCssExceptionErrorHandler INSTANCE
Singleton.
-
-
Method Detail
-
error
public void error(CSSParseException exception)
Error.- Specified by:
error
in interfaceCSSErrorHandler
- Parameters:
exception
- theCSSParseException
that is the reason for the error.
-
fatalError
public void fatalError(CSSParseException exception)
Fatal error.- Specified by:
fatalError
in interfaceCSSErrorHandler
- Parameters:
exception
- theCSSParseException
that is the reason for the error.
-
warning
public void warning(CSSParseException exception)
Warning.- Specified by:
warning
in interfaceCSSErrorHandler
- Parameters:
exception
- theCSSParseException
that is the reason for the warning.
-
-