import org.ogce.schemas.gfac.inca.faults.DataTransfer;
public class FileTransferFault extends GfacException{
public FileTransferFault(Throwable cause,FileTransferServiceType api,String origHost, URI source,URI dest, String options) {
super(cause, FaultCode.ErrorAtDependentService);
DataTransfer dataTransfer = DataTransfer.Factory.newInstance();
dataTransfer.setOrigHost(origHost);
dataTransfer.setSource(source.toString());
dataTransfer.setDest(dest.toString());
dataTransfer.setOptions(options);
errorActionDocument = createFaultData(dataTransfer, api.toString(), cause);
}