- System.err.println("Link request error: " + e.getMessage());
- return 3;
- } catch (AssertionError e) {
- handleAssertionError(e);
- return 1;
- } catch (InvalidKeyException e) {
- e.printStackTrace();
- return 2;
- } catch (UserAlreadyExists e) {
- System.err.println("The user "
- + e.getUsername()
+ throw new IOErrorException("Link request error: " + e.getMessage(), e);
+ } catch (UserAlreadyExistsException e) {
+ throw new UserErrorException("The user "
+ + e.getNumber()