Click or drag to resize

GlobalErrorHandler Class

Inheritance Hierarchy
SystemObject
  VideoCatalogServiceGlobalErrorHandler

Namespace: VideoCatalogService
Assembly: VideoCatalogService (in VideoCatalogService.dll) Version: 9.0.9002.25764 (9.0.0.0)
Syntax
C#
public class GlobalErrorHandler : IErrorHandler

The GlobalErrorHandler type exposes the following members.

Constructors
 NameDescription
Public methodGlobalErrorHandler 
Top
Methods
 NameDescription
Public methodHandleError The method that's get invoked if any unhandled exception raised in service Here you can do what ever logic you would like to. For example logging the exception details Here the return value indicates that the exception was handled or not Return true to stop exception propagation and system considers that the exception was handled properly else return false to abort the session
Public methodProvideFault If you want to communicate the exception details to the service client as proper fault message here is the place to do it If we want to suppress the communication about the exception, set fault to null
Top
See Also