package org.commcare.core.network;

import java.io.IOException;

/**
 * Exception wrapper which communicates that an exception is the result of the current network
 * being behind a captive portal which is redirecting traffic
 *
 * @author Clayton Sims (csims@dimagi.com)
 */

public class CaptivePortalRedirectException extends IOException {
    public CaptivePortalRedirectException(IOException sourceException) {
        super("The current network is not connected to the internet. You may need to log in from " +
                "a web browser");
        this.initCause(sourceException);
    }
}

package org.commcare.core.network;

import java.io.IOException;

/**
 * Exception wrapper which communicates that an exception is the result of the current network
 * being behind a captive portal which is redirecting traffic
 *
 * @author Clayton Sims (csims@dimagi.com)
 */

public class CaptivePortalRedirectException extends RuntimeException {
    public CaptivePortalRedirectException(IOException sourceException) {
        super("The current network is not connected to the internet. You may need to log in from " +
                "a web browser");
        this.initCause(sourceException);
    }
}

Change captive portal exception to RuntimeException
Change captive portal exception to RuntimeException
