protected override void OnError(DomainServiceErrorInfo errorInfo) { if (errorInfo == null || errorInfo.Error == null) { return; } Debug.WriteLine(errorInfo.Error); }
protected override void OnError(DomainServiceErrorInfo errorInfo) { //Do log and error handling //Handle the exception with Enterprise Library (configured in Web.Config) //Search for this in the Web.config file <exceptionPolicies> tag this.ExceptionManager.HandleException(errorInfo.Error, "AllExceptionsPolicy"); base.OnError(errorInfo); }
protected override void OnError(DomainServiceErrorInfo errorInfo) { base.OnError(errorInfo); }
protected override void OnError(DomainServiceErrorInfo errorInfo) { base.OnError(errorInfo); customErrorHandler(errorInfo.Error); }
protected override void OnError(DomainServiceErrorInfo errorInfo) { base.OnError(errorInfo); throw new ApplicationException(errorInfo.Error.Message); }
protected override void OnError(DomainServiceErrorInfo errorInfo) { //Log exception errorInfo.Error }
protected override void OnError(DomainServiceErrorInfo errorInfo) { base.OnError(errorInfo); logger.Error("ProtecaDomainService Error", errorInfo.Error); }
/// <summary> /// Important Error Reporting method. /// Add logging information here. /// </summary> /// <param name="errorInfo"></param> protected override void OnError(DomainServiceErrorInfo errorInfo) { //errorInfo logging here.. base.OnError(errorInfo); }