Skip to content

TransferErrorDescription - cXmlHttpTransfer

Returns an error description for the last transfer

Type: Function
Return Data Type: String

Syntax

Function TransferErrorDescription Returns String

Call Example

Get TransferErrorDescription to StringVariable

Description

The peXmlTransferStatus property is set after a xml http request. If a transfer error occured (the value is not xtsOK), the text for that error may be determined by calling the TransferErrorDescription.

Get peXmlTransferStatus of oXmlHttp to eTransferStatus
If (eTransferStatus<>xtsOK) begin
    Get TransferErrorDescription of oXmlHttp to sErr
    Send WeHadAFaultError sErr
end

See Also

peXmlTransferStatus | LastError

Return Value

A string containing the description for the last error