com.vaadin.sass.internal.parser
Class SCSSParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.w3c.css.sac.CSSException
                  extended by com.vaadin.sass.internal.parser.ParseException
                      extended by com.vaadin.sass.internal.parser.SCSSParseException
All Implemented Interfaces:
Serializable

public class SCSSParseException
extends ParseException

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.vaadin.sass.internal.parser.ParseException
currentToken, eol, expectedTokenSequences, specialConstructor, tokenImage
 
Fields inherited from class org.w3c.css.sac.CSSException
code, e, s, S_SAC_NOT_SUPPORTED_ERR, S_SAC_SYNTAX_ERR, S_SAC_UNSPECIFIED_ERR, SAC_NOT_SUPPORTED_ERR, SAC_SYNTAX_ERR, SAC_UNSPECIFIED_ERR
 
Constructor Summary
SCSSParseException(ParseException parseException, String fileName)
           
 
Method Summary
 String getMessage()
          This method has the standard behavior when this object has been created using the standard constructors.
 
Methods inherited from class com.vaadin.sass.internal.parser.ParseException
add_escapes
 
Methods inherited from class org.w3c.css.sac.CSSException
getCode, getException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SCSSParseException

public SCSSParseException(ParseException parseException,
                          String fileName)
Method Detail

getMessage

public String getMessage()
Description copied from class: ParseException
This method has the standard behavior when this object has been created using the standard constructors. Otherwise, it uses "currentToken" and "expectedTokenSequences" to generate a parse error message and returns it. If this object has been created due to a parse error, and you do not catch it (it gets thrown from the parser), then this method is called during the printing of the final stack trace, and hence the correct error message gets displayed.

Overrides:
getMessage in class ParseException


Copyright © 2013–2014 Vaadin. All rights reserved.