Package dev.amp.validator.css
Class ErrorToken
- java.lang.Object
-
- com.steadystate.css.parser.Token
-
- dev.amp.validator.css.Token
-
- dev.amp.validator.css.ErrorToken
-
- All Implemented Interfaces:
Serializable
public class ErrorToken extends Token
Error tokens carry an error code and parameters, which can be formatted into an error message via the format strings in validator.protoascii.- Author:
- nhant01, GeorgeLuo
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ErrorToken(dev.amp.validator.ValidatorProtos.ValidationError.Code optCode, List<String> optParams)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description dev.amp.validator.ValidatorProtos.ValidationError.CodegetCode()Getter for error codeList<String>getParams()Getter for error paramsTokenTypegetTokenType()Getter for token type.
-
-
-
Constructor Detail
-
ErrorToken
public ErrorToken(dev.amp.validator.ValidatorProtos.ValidationError.Code optCode, List<String> optParams) throws CssValidationExceptionConstructor- Parameters:
optCode- the optCode value to setoptParams- the optParams to set- Throws:
CssValidationException- Css Validation Exception
-
-
Method Detail
-
getCode
public dev.amp.validator.ValidatorProtos.ValidationError.Code getCode()
Getter for error code- Returns:
- error code
-
getTokenType
public TokenType getTokenType()
Getter for token type.- Specified by:
getTokenTypein classToken- Returns:
- returns token type error
-
-