StorageHelperHandleHttpErrorT Method (WebException, String, FuncString, Exception, T) |
Handles HTTP Errors obtaining additional information from the HTTP response if possible.
Namespace:
VDS.RDF.Storage
Assembly:
dotNetRDF (in dotNetRDF.dll) Version:
Syntax public static T HandleHttpError<T>(
WebException webEx,
string action,
Func<string, Exception, T> errorProvider
)
where T : Exception
Public Shared Function HandleHttpError(Of T As Exception) (
webEx As WebException,
action As String,
errorProvider As Func(Of String, Exception, T)
) As T
Parameters
- webEx
- Type: System.NetWebException
HTTP Error. - action
- Type: SystemString
Action being performed. - errorProvider
- Type: SystemFuncString, Exception, T
Function that generates the actual errors.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:VDS.RDF.Storage.StorageHelper.HandleHttpError``1(System.Net.WebException,System.String,System.Func{System.String,System.Exception,``0})"]
Return Value
Type:
T[Missing <returns> documentation for "M:VDS.RDF.Storage.StorageHelper.HandleHttpError``1(System.Net.WebException,System.String,System.Func{System.String,System.Exception,``0})"]
Remarks
Adapted from Ron Michael's Zettlemoyer's original patch for this in Stardog to use it across all operations as far as possible.
See Also