public AuthenticationException(HttpURLConnection httpConn) throws IOException {
  super(httpConn);
  initFromAuthHeader(httpConn.getHeaderField("WWW-Authenticate"));
}

public AuthenticationException ( HttpURLConnection httpConn ) throws IOException { super ( httpConn ) ; initFromAuthHeader ( httpConn . getHeaderField ( "WWW-Authenticate" ) ) ; }
constructs a new authenticationexception using header and error stream information from an http connection .
