- return 0;
- } catch (IOException | UntrustedIdentityException e) {
- System.err.println("SendContacts error: " + e.getMessage());
- return 3;
+ } catch (UntrustedIdentityException e) {
+ throw new UntrustedKeyErrorException("SendContacts error: " + e.getMessage());
+ } catch (IOException e) {
+ throw new IOErrorException("SendContacts error: " + e.getMessage());