Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
FromException Method (Exception, String, String)
Collapse the table of content
Expand the table of content

ExceptionMapper.FromException Method (Exception, String, String)

.NET Framework 4.6 and 4.5

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

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft