Translates the input exception to a fault using the mapping defined in ExceptionMap.
Namespace: Microsoft.IdentityModel
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim instance As ExceptionMapper
Dim ex As Exception
Dim soapNamespace As String
Dim trustNamespace As String
Dim returnValue As FaultException

returnValue = instance.FromException(ex, soapNamespace, trustNamespace)

Syntax

Visual Basic
Public Overridable Function FromException ( _
		ex As Exception, _
		soapNamespace As String, _
		trustNamespace As String _
) As FaultException
C#
public virtual FaultException FromException (
		Exception ex,
		string soapNamespace,
		string trustNamespace
)
C++
public:
virtual FaultException^ FromException (
		Exception^ ex, 
		String^ soapNamespace, 
		String^ trustNamespace
)
J#
public FaultException FromException (
		Exception ex, 
		String soapNamespace, 
		String trustNamespace
)
JScript
public function FromException (
		ex : Exception, 
		soapNamespace : String, 
		trustNamespace : String
) : FaultException

Parameters

ex

The exception to be mapped to a fault.

soapNamespace

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

trustNamespace

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

Return Value

The fault corresponding to the input exception.

Exceptions

Exception type Condition

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also