Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
059cfd0c
Commit
059cfd0c
authored
Dec 02, 2025
by
Luna Riegel
Browse files
Refactor: Add deserialization exception handling
parent
7fc7500d
Pipeline
#12215
passed with stage
in 2 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/database/EmbeddedDatabaseHandler.java
View file @
059cfd0c
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment