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();
|
so.flush();
|
||||||
return Base64.getEncoder().encodeToString(bo.toByteArray());
|
return Base64.getEncoder().encodeToString(bo.toByteArray());
|
||||||
}
|
}
|
||||||
catch (IOException ignored) {}
|
catch (IOException e) {
|
||||||
return null;
|
throw new SerializationException("Error during serialization", e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static LinkedList deserializeBase64(String dataStr) {
|
public static LinkedList deserializeBase64(String dataStr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user