Throw exception in case of serialization issue
This commit is contained in:
parent
1644a4b07d
commit
28d7ff18ba
@ -18,8 +18,9 @@ public class SerializationUtil
|
||||
so.flush();
|
||||
return Base64.getEncoder().encodeToString(bo.toByteArray());
|
||||
}
|
||||
catch (IOException ignored) {}
|
||||
return null;
|
||||
catch (IOException e) {
|
||||
throw new SerializationException("Error during serialization", e);
|
||||
}
|
||||
}
|
||||
|
||||
public static LinkedList deserializeBase64(String dataStr) {
|
||||
|
Loading…
Reference in New Issue
Block a user