Implemented Logging

This commit is contained in:
2023-10-02 17:45:12 +03:00
parent d85f9a6132
commit 13afebe65b
5 changed files with 73 additions and 2 deletions

View File

@@ -15,8 +15,8 @@ public class DataDeserializer {
try (ObjectInputStream ois = new ObjectInputStream(new FileInputStream(serializedFile))) {
manager = (Supervisor) ois.readObject();
System.out.println("Supervisor object deserialized successfully.");
} catch (IOException | ClassNotFoundException e) {
e.printStackTrace();
} catch (ClassNotFoundException | IOException e) {
System.err.println("Error!");
}
} else {
System.out.println("Serialized file 'manager.ser' does not exist.");