while ((ch = is.read()) >= 0)
sb.append((char) ch);
}
statusMessage = sb.toString();
} catch (FileNotFoundException e) {
throw new HessianConnectionException(
"HessianProxy cannot connect to '" + url, e);
} catch (IOException e) {
if (is == null)
throw new HessianConnectionException(statusCode + ": "+ e, e);
else
throw new HessianConnectionException(statusCode + ": "+ sb, e);
}
if (is != null)
is.close();
throw new HessianConnectionException(statusCode + ": "+ sb.toString());
}
}
}