} // end of run loop
}
private void _save() {
SerializationResult result;
try {
result = currTest.getSerializer().serialize(currTest.getWorld());
} catch (UnsupportedObjectException e1) {
log.error("Error serializing world", e1);
if (errorHandler != null)
errorHandler.serializationError(e1, "Error serializing the object: " + e1.toString());
return;
}
try {
FileOutputStream fos = new FileOutputStream(currTest.getFilename());
result.writeTo(fos);
fos.flush();
fos.close();
} catch (FileNotFoundException e) {
log.error("File not found exception while saving", e);
if (errorHandler != null)