com.google.clearsilver.jsilver.exceptions
Class JSilverBadSyntaxException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.google.clearsilver.jsilver.exceptions.JSilverException
                  extended by com.google.clearsilver.jsilver.exceptions.JSilverBadSyntaxException
All Implemented Interfaces:
Serializable

public class JSilverBadSyntaxException
extends JSilverException

Thrown when resource (e.g. template or HDF) contains bad syntax.

See Also:
Serialized Form

Field Summary
static int UNKNOWN_POSITION
          Signifies line or column is not known.
 
Constructor Summary
JSilverBadSyntaxException(String message, String lineContent, String resourceName, int line, int column, Throwable cause)
          Constructor of JSilverBadSyntaxException.
 
Method Summary
 int getColumn()
          Column number this syntax error occured, or UNKNOWN_POSITION.
 int getLine()
          Line number this syntax error occured, or UNKNOWN_POSITION.
 String getResourceName()
          Name of resource that had syntax error (typically a file name).
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN_POSITION

public static final int UNKNOWN_POSITION
Signifies line or column is not known.

See Also:
Constant Field Values
Constructor Detail

JSilverBadSyntaxException

public JSilverBadSyntaxException(String message,
                                 String lineContent,
                                 String resourceName,
                                 int line,
                                 int column,
                                 Throwable cause)
Constructor of JSilverBadSyntaxException.

Parameters:
message - text of an error message
lineContent - content of a line where error occurred (can be null)
resourceName - name of a file where error occurred (can be null)
line - number of a line in resourceName where error occurred (ignored if set to UNKNOWN_POSITION)
column - number of a column in resourceName where error occurred (ignored if set to UNKNOWN_POSITION)
cause - an original exception of an error. Null value is permitted and indicates that the cause is nonexistent or unknown.
Method Detail

getResourceName

public String getResourceName()
Name of resource that had syntax error (typically a file name).


getLine

public int getLine()
Line number this syntax error occured, or UNKNOWN_POSITION.


getColumn

public int getColumn()
Column number this syntax error occured, or UNKNOWN_POSITION.



Copyright © 2010-2012 Google. All Rights Reserved.