import java.io.IOException;
import java.util.concurrent.TimeoutException;
-import static org.asamk.signal.util.ErrorUtils.handleAssertionError;
-
public class LinkCommand implements ProvisioningCommand {
private final static Logger logger = LoggerFactory.getLogger(LinkCommand.class);
throw new UserErrorException("Link request timed out, please try again.");
} catch (IOException e) {
throw new IOErrorException("Link request error: " + e.getMessage());
- } catch (AssertionError e) {
- handleAssertionError(e);
- throw e;
} catch (InvalidKeyException e) {
logger.debug("Finish device link failed", e);
throw new UnexpectedErrorException("Invalid key: " + e.getMessage());