Ignore:
Timestamp:
01/28/20 10:19:54 (4 years ago)
Author:
bart
Message:

Update 28 jan 2020

Location:
profileconnection/src/main/java/geniusweb/profileconnection
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • profileconnection/src/main/java/geniusweb/profileconnection/ProfileInterface.java

    r9 r10  
    11package geniusweb.profileconnection;
     2
     3import java.io.IOException;
    24
    35import geniusweb.profile.Profile;
     
    1214         * @return the latest version of the profile. May change at any time, after
    1315         *         someone updates the version on the server. Call to this may block
    14          *         for limited time if the profile is not yet available. May return
    15          *         null if the profile is not available.
    16          */
    17         public Profile getProfile();
     16         *         for limited time if the profile is not yet available.
     17         *         @throws IOException if profile can not be fetched     */
     18        public Profile getProfile() throws IOException;
    1819}
  • profileconnection/src/main/java/geniusweb/profileconnection/WebsocketProfileConnector.java

    r9 r10  
    6969
    7070        @Override
    71         public Profile getProfile() {
     71        public Profile getProfile() throws IOException {
    7272                int remaining_wait = TIMEOUT_MS;
    7373                try {
     
    8080                                        e);
    8181                }
     82                if (profile == null) {
     83                        throw new IOException("Failed to fetch profile");
     84                }
    8285                return profile;
    8386        }
Note: See TracChangeset for help on using the changeset viewer.