Class PySyntaxError

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.python.core.PyException
                  extended by org.python.core.PySyntaxError
All Implemented Interfaces:

public class PySyntaxError
extends PyException

A convenience 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
Fields inherited from class org.python.core.PyException
traceback, type, value
Constructor Summary
PySyntaxError(String s, int line, int column, String text, String filename)
Method Summary
Methods inherited from class org.python.core.PyException
doRaise, exceptionClassName, fillInStackTrace, isExceptionClass, isExceptionInstance, match, normalize, printStackTrace, printStackTrace, super__printStackTrace, toString, tracebackHere, tracebackHere
Methods inherited from class java.lang.Throwable
getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


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

Jython homepage