C# 클래스 GSF.ServiceModel.JsonFaultHandler

Creates an error handler for encoding errors as JSON responses.
상속: IErrorHandler
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf

공개 메소드들

메소드 설명
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.

메소드 상세

HandleError() 공개 메소드

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.
리턴 bool

ProvideFault() 공개 메소드

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.
리턴 void