ExceptionMapper.FromException Method

Definition

Translates the input exception to a fault.

Overloads

FromException(Exception)

Translates the input exception to a fault.

FromException(Exception, String, String)

Translates the input exception to a fault.

FromException(Exception)

Translates the input exception to a fault.

C#
public virtual System.ServiceModel.FaultException FromException(Exception ex);

Parameters

ex
Exception

The exception to be mapped to a fault.

Returns

The fault corresponding to the input exception.

Applies to

.NET Framework 4.8.1 a ďalšie verzie
Produkt Verzie
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

FromException(Exception, String, String)

Translates the input exception to a fault.

C#
public virtual System.ServiceModel.FaultException FromException(Exception ex, string soapNamespace, string trustNamespace);

Parameters

ex
Exception

The exception to be mapped to a fault.

soapNamespace
String

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

trustNamespace
String

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

Returns

The fault corresponding to the input exception.

Applies to

.NET Framework 4.8.1 a ďalšie verzie
Produkt Verzie
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1