Class CSSParseError
java.lang.Object
com.helger.css.reader.errorhandler.CSSParseError
This item contains a single CSSparsing error. It is used e.g. in the
CollectingCSSParseErrorHandler.- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionCSSParseError(Token aLastValidToken, int[][] aExpectedTokenSequencesVal, String[] aTokenImageVal, Token aLastSkippedToken) CSSParseError(String sErrorMsg) -
Method Summary
Modifier and TypeMethodDescriptionstatic CSSParseErrorcreateBrowserCompliantSkip(ParseException ex, Token aFromToken, Token aToToken) static CSSParseErrorcreateDeprecatedProperty(Token aPrefixToken, Token aIdentifierToken) static CSSParseErrorcreateIllegalCharacter(char cIllegalChar) static CSSParseErrorcreateUnexpectedRule(Token aCurrentToken, String sRule, String sMsg) toString()
-
Constructor Details
-
CSSParseError
-
CSSParseError
-
-
Method Details
-
getLastValidToken
- Returns:
- The last valid token read. May be
null.
-
getExpectedTokens
- Returns:
- The expected tokens as a string representation. May be
null.
-
getFirstSkippedToken
- Returns:
- The first token that was skipped. That can be used to identify the
start position of the error. May be
null.
-
getLastSkippedToken
- Returns:
- The last token that was skipped. That can be used to identify the
end position of the error. May be
null.
-
getErrorMessage
- Returns:
- The error message created by
LoggingCSSParseErrorHandleras a convenience method. Neithernullnor empty.
-
toString
-
createUnexpectedRule
-
createDeprecatedProperty
-
createBrowserCompliantSkip
@Nonnull public static CSSParseError createBrowserCompliantSkip(@Nullable ParseException ex, @Nonnull Token aFromToken, @Nonnull Token aToToken) -
createIllegalCharacter
-