Class LoggingCSSInterpretErrorHandler
java.lang.Object
com.helger.css.reader.errorhandler.LoggingCSSInterpretErrorHandler
- All Implemented Interfaces:
ICSSInterpretErrorHandler
@Immutable
public class LoggingCSSInterpretErrorHandler
extends Object
implements ICSSInterpretErrorHandler
A logging implementation of
ICSSInterpretErrorHandler. So in case a
warning or an error occurs, the details are logged to an SLF4J logger.- Since:
- 5.0.2
- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonCSSInterpretationError(String sMessage) Called when an interpretation error occurs.voidonCSSInterpretationWarning(String sMessage) Called when an interpretation error or warning occurs.toString()
-
Constructor Details
-
LoggingCSSInterpretErrorHandler
public LoggingCSSInterpretErrorHandler()Default constructor.
-
-
Method Details
-
onCSSInterpretationWarning
Description copied from interface:ICSSInterpretErrorHandlerCalled when an interpretation error or warning occurs.- Specified by:
onCSSInterpretationWarningin interfaceICSSInterpretErrorHandler- Parameters:
sMessage- The message text of the error.
-
onCSSInterpretationError
Description copied from interface:ICSSInterpretErrorHandlerCalled when an interpretation error occurs.- Specified by:
onCSSInterpretationErrorin interfaceICSSInterpretErrorHandler- Parameters:
sMessage- The message text of the error.
-
toString
-