Lines 267-272
Link Here
|
267 |
|
267 |
|
268 |
static class MyErrorHandler implements ErrorHandler { |
268 |
static class MyErrorHandler implements ErrorHandler { |
269 |
static MyErrorHandler _instance = new MyErrorHandler(); |
269 |
static MyErrorHandler _instance = new MyErrorHandler(); |
|
|
270 |
private List errorMessages = new ArrayList(); |
271 |
|
270 |
private MyErrorHandler() {} |
272 |
private MyErrorHandler() {} |
271 |
|
273 |
|
272 |
public static ErrorHandler getInstance() { |
274 |
public static ErrorHandler getInstance() { |
Lines 279-290
Link Here
|
279 |
|
281 |
|
280 |
public void handleError(String message) { |
282 |
public void handleError(String message) { |
281 |
log("ErrorHandler.handleWarning("+message+")"); |
283 |
log("ErrorHandler.handleWarning("+message+")"); |
282 |
|
284 |
errorMessages.add(message); |
283 |
} |
285 |
} |
284 |
|
286 |
|
285 |
public void handleError(String message, Throwable t) { |
287 |
public void handleError(String message, Throwable t) { |
286 |
log("ErrorHandler.handleError("+message+","+t+")"); |
288 |
log("ErrorHandler.handleError("+message+","+t+")"); |
287 |
if (VERBOSE) t.printStackTrace(); |
289 |
if (VERBOSE) t.printStackTrace(); |
|
|
290 |
errorMessages.add(message+","+t+")"); |
291 |
} |
292 |
|
293 |
public static List/*String*/ getErrorMessages() { |
294 |
return _instance.errorMessages; |
288 |
} |
295 |
} |
289 |
|
296 |
|
290 |
} |
297 |
} |