org.python.core
Class PySyntaxError

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.python.core.PyException
                  extended byorg.python.core.PySyntaxError
All Implemented Interfaces:
Serializable

public class PySyntaxError
extends PyException

A convience class for creating Syntax errors. Note that the syntax error is still taken from Py.SyntaxError.

Generally subclassing from PyException is not the right way of creating new exception classes.

See Also:
Serialized Form

Field Summary
 boolean forceNewline
           
 
Fields inherited from class org.python.core.PyException
traceback, type, value
 
Constructor Summary
PySyntaxError(String s, int line, int column, String text, String filename)
           
PySyntaxError(String s, int line, int column, String text, String filename, boolean forceNewline)
           
 
Methods inherited from class org.python.core.PyException
instantiate, printStackTrace, printStackTrace, super__printStackTrace, toString, userFriendlyString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

forceNewline

public boolean forceNewline
Constructor Detail

PySyntaxError

public PySyntaxError(String s,
                     int line,
                     int column,
                     String text,
                     String filename)

PySyntaxError

public PySyntaxError(String s,
                     int line,
                     int column,
                     String text,
                     String filename,
                     boolean forceNewline)