public void DealWithPreviouslyOccurredExceptions(RequestProcessingContext context) { var response = CreateResponse(context); var exceptionInfo = new ExceptionInfo(new Exception(ExceptionType.EarlierRequestAlreadyFailed.ToString())); response.Exception = exceptionInfo; response.ExceptionType = ExceptionType.EarlierRequestAlreadyFailed; context.MarkAsProcessed(response); }
public ExceptionInfo(Exception exception) { Message = exception.Message; StackTrace = exception.StackTrace; Type = exception.GetType().ToString(); if (exception.InnerException != null) { InnerException = new ExceptionInfo(exception.InnerException); } }
private void SetExceptionFaultCode(Exception exception, ExceptionInfo exceptionInfo) { var businessExceptionType = exception.GetType(); var faultCodeProperty = businessExceptionType.GetProperty("FaultCode"); if (faultCodeProperty != null && faultCodeProperty.CanRead && faultCodeProperty.PropertyType.Equals(typeof(string))) { exceptionInfo.FaultCode = (string)faultCodeProperty.GetValue(exception, null); } }
private void HandleGetAllProblemsByClinicalCaseException( ExceptionInfo ex ) { IsLoading = false; _userDialogService.ShowDialog ( ex.Message, "Could not get all problems by clinical case key", UserDialogServiceOptions.Ok ); }
private void HandleGetPayorTypesException( ExceptionInfo ex ) { IsLoading = false; _userDialogService.ShowDialog ( ex.Message, "Get Payor Types list failed.", UserDialogServiceOptions.Ok ); }
private void HandleGetAllClaimBatchesException( ExceptionInfo ex ) { IsLoading = false; _userDialogService.ShowDialog ( ex.Message, "Could not get all Claim batches.", UserDialogServiceOptions.Ok ); }
private void HandleRequestDispatcherException( ExceptionInfo exceptionInfo ) { IsLoading = false; _userDialogService.ShowDialog ( exceptionInfo.Message, "Interoperability Workspace operation failed.", UserDialogServiceOptions.Ok ); }
private void ExceptionOccurred(ExceptionInfo exceptionInfo) { throw new Exception(exceptionInfo.Message); }
private void HandleRevokeSystemRoleException( ExceptionInfo ex ) { IsLoading = false; _userDialogService.ShowDialog ( ex.Message, "Could not save", UserDialogServiceOptions.Ok ); }
private void HandleSaveSelfPaymentRequestError( ExceptionInfo exceptionInfo ) { _userDialogService.ShowDialog ( exceptionInfo.Message, "Error saving Self payment.", UserDialogServiceOptions.Ok ); IsLoading = false; }
private void HandleInitializationError( ExceptionInfo exceptionInfo ) { _userDialogService.ShowDialog ( exceptionInfo.Message, "Error Initializing", UserDialogServiceOptions.Ok ); IsLoading = false; }
private void HandleGetLocationSummaryDtoException( ExceptionInfo ex ) { IsLoading = false; _userDialogService.ShowDialog ( ex.Message, "Could not get the selected dto", UserDialogServiceOptions.Ok ); }
private void HandleRequestDispatcherException( ExceptionInfo exceptionInfo ) { IsLoading = false; _userDialogService.ShowDialog ( exceptionInfo.Message, "Sending C32 failed.", UserDialogServiceOptions.Ok ); }
private void HandleLogEventAccessException( ExceptionInfo ex ) { _userDialogService.ShowDialog ( ex.Message, "Could not log the access event.", UserDialogServiceOptions.Ok ); }
private void HandleAddToTaskException( ExceptionInfo exceptionInfo ) { IsLoading = false; _userDialogService.ShowDialog ( exceptionInfo.Message, "Add permissions to task failed", UserDialogServiceOptions.Ok ); }
private void HandleInitializationException( ExceptionInfo exceptionInfo ) { IsLoading = false; _userDialogService.ShowDialog ( exceptionInfo.Message, "Job Function editor initialization failed", UserDialogServiceOptions.Ok ); }
private void HandleCloneRequestException( ExceptionInfo exceptionInfo ) { _userDialogService.ShowDialog ( exceptionInfo.Message, "Clone failed", UserDialogServiceOptions.Ok ); IsLoading = false; }
private void HandleSaveJobFunctionException( ExceptionInfo ex ) { IsLoading = false; _userDialogService.ShowDialog ( ex.Message, "Could not save", UserDialogServiceOptions.Ok ); }
private void HandleCreateNewTaskException( ExceptionInfo exceptionInfo ) { IsLoading = false; _userDialogService.ShowDialog ( exceptionInfo.Message, "Create new task failed", UserDialogServiceOptions.Ok ); }
private void HandleRequestDispatcherException( ExceptionInfo exceptionInfo ) { _userDialogService.ShowDialog ( exceptionInfo.Message, "Error Loading Patient List", UserDialogServiceOptions.Ok ); IsLoading = false; }
private void HandleRemoveFromTaskException( ExceptionInfo exceptionInfo ) { IsLoading = false; _userDialogService.ShowDialog ( exceptionInfo.Message, "Remove permissions from task failed", UserDialogServiceOptions.Ok ); }
private void HandleRequestDispatcherException( ExceptionInfo exceptionInfo ) { _userDialogService.ShowDialog ( exceptionInfo.Message, "Medication operation failed.", UserDialogServiceOptions.Ok ); IsLoading = false; }
private void HandleRenameTaskGroupException( ExceptionInfo exceptionInfo ) { IsLoading = false; _userDialogService.ShowDialog ( exceptionInfo.Message, "Rename task group failed", UserDialogServiceOptions.Ok ); }
private void HandleGenerateHcc837ProfessionalException( ExceptionInfo ex ) { IsLoading = false; _userDialogService.ShowDialog ( ex.Message, "Could not generate health care claim 837 professional message.", UserDialogServiceOptions.Ok ); }
private void HandleCreateNewClinicalCaseRequestDispatcherException( ExceptionInfo exceptionInfo ) { _userDialogService.ShowDialog ( exceptionInfo.Message, "Clinical Case created failed.", UserDialogServiceOptions.Ok ); }
private void HandleResetTestDataException( ExceptionInfo ex ) { IsLoading = false; _userDialogService.ShowDialog ( ex.Message, "Could not reset test data.", UserDialogServiceOptions.Ok ); }
private void HandleInitializationException( ExceptionInfo exceptionInfo ) { IsLoading = false; _userDialogService.ShowDialog ( exceptionInfo.Message, "Could not retrieve the default clinical case / Trying to Get all Cases Failed", UserDialogServiceOptions.Ok ); }
private void HandleDeleteProblemException( ExceptionInfo ex ) { IsLoading = false; _userDialogService.ShowDialog ( ex.Message, "Could not delete", UserDialogServiceOptions.Ok ); }
private void HandleEditRequestDispatcherException( ExceptionInfo exceptionInfo ) { _userDialogService.ShowDialog ( exceptionInfo.Message, "Load job function failed.", UserDialogServiceOptions.Ok ); IsLoading = false; }
private void HandleGetLookupValuesException( ExceptionInfo ex ) { IsLoading = false; _userDialogService.ShowDialog ( "Could not retrieve the lookup values. Error: " + ex.Message, "An error has occurred", UserDialogServiceOptions.Ok ); }
protected virtual void DealWithUnknownException(ExceptionInfo exception) { }