1 package org.python.core; 3 4 11 12 public class PySyntaxError extends PyException { 13 int lineno, column; 14 String text; 15 String filename; 16 17 18 public PySyntaxError(String s, int line, int column, String text, 19 String filename) 20 { 21 super(Py.SyntaxError); 22 PyObject[] tmp = new PyObject[] { 23 new PyString(filename), new PyInteger(line), 24 new PyInteger(column), new PyString(text) 25 }; 26 27 this.value = new PyTuple(new PyObject[] { 28 new PyString(s), new PyTuple(tmp) 29 }); 30 31 this.lineno = line; 32 this.column = column; 33 this.text = text; 34 this.filename = filename; 35 } 36 } 37 | Popular Tags |