|
JsonFaultHandlerProvideFault Method
|
Enables the creation of a custom FaultException that is returned from an exception in the course of a service method.
Namespace: GSF.ServiceModelAssembly: GSF.ServiceModel (in GSF.ServiceModel.dll) Version: 2.4.248-beta
Syntaxpublic void ProvideFault(
Exception error,
MessageVersion version,
ref Message fault
)
Public Sub ProvideFault (
error As Exception,
version As MessageVersion,
ByRef fault As Message
)
public:
virtual void ProvideFault(
Exception^ error,
MessageVersion^ version,
Message^% fault
) sealed
abstract ProvideFault :
error : Exception *
version : MessageVersion *
fault : Message byref -> unit
override ProvideFault :
error : Exception *
version : MessageVersion *
fault : Message byref -> unit
function ProvideFault(error, version, fault);
View SourceParameters
- error Exception
- The Exception object thrown in the course of the service operation.
- version MessageVersion
- The SOAP version of the message.
- fault Message
- The Message object that is returned to the client, or service, in the duplex case.
Implements
IErrorHandlerProvideFault(Exception, MessageVersion, Message)
See Also