131 return parser;
132 }
133
134 protected static String strException(Exception ex) {
135 StringBuffer sb = new StringBuffer();
136
137 while (ex != null) {
138 if (ex instanceof SAXParseException) {
139 SAXParseException e = (SAXParseException) ex;
140 sb.append("" + e.getSystemId() + "(" + e.getLineNumber() + "," + e.getColumnNumber() + "): " + e.getMessage());
141 ex = e.getException();
142 } else {
143 sb.append(ex);
144 ex = null;
145 }
146 }
147 return sb.toString();
148 }
149
150 }
151
|
131 return parser;
132 }
133
134 protected static String strException(Exception ex) {
135 StringBuffer sb = new StringBuffer();
136
137 while (ex != null) {
138 if (ex instanceof SAXParseException) {
139 SAXParseException e = (SAXParseException) ex;
140 sb.append("" + e.getSystemId() + "(" + e.getLineNumber() + "," + e.getColumnNumber() + "): " + e.getMessage());
141 ex = e.getException();
142 } else {
143 sb.append(ex);
144 ex = null;
145 }
146 }
147 return sb.toString();
148 }
149
150 }
|