- return 3;
- }
-
- public static void handleIOException(IOException e) {
- System.err.println("Failed to send message: " + e.getMessage());
- }
-
- public static void handleGroupNotFoundException(GroupNotFoundException e) {
- System.err.println("Failed to send to group: " + e.getMessage());
- System.err.println("Aborting sending.");
- }
-
- public static void handleNotAGroupMemberException(NotAGroupMemberException e) {
- System.err.println("Failed to send to group: " + e.getMessage());
- System.err.println("Update the group on another device to readd the user to this group.");
- System.err.println("Aborting sending.");
- }
-
- public static void handleGroupIdFormatException(GroupIdFormatException e) {
- System.err.println(e.getMessage());
- System.err.println("Aborting sending.");
- }
-
- public static void handleInvalidNumberException(InvalidNumberException e) {
- System.err.println("Failed to parse recipient: " + e.getMessage());
- System.err.println("Aborting sending.");