ExceptionMapper.FromException Method (Exception, String, String)

.NET Framework (current version)
 

Translates the input exception to a fault.

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public virtual FaultException FromException(
	Exception ex,
	string soapNamespace,
	string trustNamespace
)

Parameters

ex
Type: System.Exception

The exception to be mapped to a fault.

soapNamespace
Type: System.String

The SOAP Namespace to be used when generating the mapped fault.

trustNamespace
Type: System.String

The WS-Trust Namespace to be used when generating the mapped fault.

Return Value

Type: System.ServiceModel.FaultException

The fault corresponding to the input exception.

.NET Framework
Available since 4.5
Return to top
Show: