Throwable cause = ForceExceptionUtils.getRootCause(e);
if (cause instanceof ApiFault) {
ApiFault apiFaultCause = (ApiFault) cause;
String message = getStrippedExceptionMessage(apiFaultCause.getExceptionMessage());
message = Messages.getString("General.ApiUnknownException.message", new String[] { message });
throw new ForceRemoteException(message, connection);
}
throw new ForceRemoteException(e, connection);
}