C# Class GSF.ServiceModel.JsonFaultHandler

Creates an error handler for encoding errors as JSON responses.
Inheritance: IErrorHandler
ファイルを表示 Open project: GridProtectionAlliance/gsf

Public Methods

Method Description
HandleError ( Exception error ) : bool

Enables error-related processing and returns a value that indicates whether the dispatcher aborts the session and the instance context in certain cases.

ProvideFault ( Exception error, System.ServiceModel.Channels.MessageVersion version, Message &fault ) : void

Enables the creation of a custom FaultException that is returned from an exception in the course of a service method.

Method Details

HandleError() public method

Enables error-related processing and returns a value that indicates whether the dispatcher aborts the session and the instance context in certain cases.
public HandleError ( Exception error ) : bool
error System.Exception The exception thrown during processing.
return bool

ProvideFault() public method

Enables the creation of a custom FaultException that is returned from an exception in the course of a service method.
public ProvideFault ( Exception error, System.ServiceModel.Channels.MessageVersion version, Message &fault ) : void
error System.Exception The object thrown in the course of the service operation.
version System.ServiceModel.Channels.MessageVersion The SOAP version of the message.
fault Message The object that is returned to the client, or service, in the duplex case.
return void