PropagateOrLogException Method
Serialize the exception into a SoapException node and throw an error. Server exceptions also get logged to the application event log.
Namespace: Microsoft.CommerceServer.Profiles.WebService
Assembly: Microsoft.CommerceServer.Profiles.DataManagement (in Microsoft.CommerceServer.Profiles.DataManagement.dll)
Syntax
'Declaration
Protected Overridable Sub PropagateOrLogException ( _
ex As Exception _
)
'Usage
Dim ex As Exception
Me.PropagateOrLogException(ex)
protected virtual void PropagateOrLogException(
Exception ex
)
protected:
virtual void PropagateOrLogException(
Exception^ ex
)
protected function PropagateOrLogException(
ex : Exception
)
Parameters
- ex
Type: System..::.Exception
The exception to propagate to the client.
Remarks
The SoapException is the exception that is thrown when an XML Web service method is called over SOAP and an exception occurs. A SoapException is an indication that there is a problem on the server.
Server exceptions also get logged to the application event log.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.