Commit 059cfd0c authored by Luna Riegel's avatar Luna Riegel
Browse files

Refactor: Add deserialization exception handling

parent 7fc7500d
Pipeline #12215 passed with stage
in 2 minutes and 16 seconds
......@@ -19,6 +19,7 @@ import org.h2gis.utilities.wrapper.DataSourceWrapper;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InvalidClassException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
......@@ -191,6 +192,9 @@ public class EmbeddedDatabaseHandler {
}
});
return co;
} catch (InvalidClassException | ClassCastException | SerializationException e){
String msg = String.format("Deserialization of CityObject \"%s\" failed",id);
logger.error(msg,e);
}
}
} catch (IOException e) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment