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);
 }
Пример #2
0
        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);
            }
        }
Пример #4
0
 private void HandleGetAllProblemsByClinicalCaseException( ExceptionInfo ex )
 {
     IsLoading = false;
     _userDialogService.ShowDialog ( ex.Message, "Could not get all problems by clinical case key", UserDialogServiceOptions.Ok );
 }
Пример #5
0
 private void HandleGetPayorTypesException( ExceptionInfo ex )
 {
     IsLoading = false;
     _userDialogService.ShowDialog ( ex.Message, "Get Payor Types list failed.", UserDialogServiceOptions.Ok );
 }
Пример #6
0
 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 );
 }
Пример #8
0
 private void ExceptionOccurred(ExceptionInfo exceptionInfo)
 {
     throw new Exception(exceptionInfo.Message);
 }
Пример #9
0
 private void HandleRevokeSystemRoleException( ExceptionInfo ex )
 {
     IsLoading = false;
     _userDialogService.ShowDialog ( ex.Message, "Could not save", UserDialogServiceOptions.Ok );
 }
Пример #10
0
 private void HandleSaveSelfPaymentRequestError( ExceptionInfo exceptionInfo )
 {
     _userDialogService.ShowDialog ( exceptionInfo.Message, "Error saving Self payment.", UserDialogServiceOptions.Ok );
     IsLoading = false;
 }
Пример #11
0
 private void HandleInitializationError( ExceptionInfo exceptionInfo )
 {
     _userDialogService.ShowDialog ( exceptionInfo.Message, "Error Initializing", UserDialogServiceOptions.Ok );
     IsLoading = false;
 }
Пример #12
0
 private void HandleGetLocationSummaryDtoException( ExceptionInfo ex )
 {
     IsLoading = false;
     _userDialogService.ShowDialog ( ex.Message, "Could not get the selected dto", UserDialogServiceOptions.Ok );
 }
Пример #13
0
 private void HandleRequestDispatcherException( ExceptionInfo exceptionInfo )
 {
     IsLoading = false;
     _userDialogService.ShowDialog ( exceptionInfo.Message, "Sending C32 failed.", UserDialogServiceOptions.Ok );
 }
Пример #14
0
 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 );
 }
Пример #16
0
 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;
 }
Пример #18
0
 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 );
 }
Пример #20
0
 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 );
 }
Пример #22
0
 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 );
 }
Пример #24
0
 private void HandleGenerateHcc837ProfessionalException( ExceptionInfo ex )
 {
     IsLoading = false;
     _userDialogService.ShowDialog (
         ex.Message, "Could not generate health care claim 837 professional message.", UserDialogServiceOptions.Ok );
 }
Пример #25
0
 private void HandleCreateNewClinicalCaseRequestDispatcherException( ExceptionInfo exceptionInfo )
 {
     _userDialogService.ShowDialog ( exceptionInfo.Message, "Clinical Case created failed.", UserDialogServiceOptions.Ok );
 }
Пример #26
0
 private void HandleResetTestDataException( ExceptionInfo ex )
 {
     IsLoading = false;
     _userDialogService.ShowDialog ( ex.Message, "Could not reset test data.", UserDialogServiceOptions.Ok );
 }
Пример #27
0
 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 );
 }
Пример #28
0
 private void HandleDeleteProblemException( ExceptionInfo ex )
 {
     IsLoading = false;
     _userDialogService.ShowDialog ( ex.Message, "Could not delete", UserDialogServiceOptions.Ok );
 }
Пример #29
0
 private void HandleEditRequestDispatcherException( ExceptionInfo exceptionInfo )
 {
     _userDialogService.ShowDialog ( exceptionInfo.Message, "Load job function failed.", UserDialogServiceOptions.Ok );
     IsLoading = false;
 }
Пример #30
0
 private void HandleGetLookupValuesException( ExceptionInfo ex )
 {
     IsLoading = false;
     _userDialogService.ShowDialog (
         "Could not retrieve the lookup values. Error: " + ex.Message,
         "An error has occurred",
         UserDialogServiceOptions.Ok );
 }
Пример #31
0
 protected virtual void DealWithUnknownException(ExceptionInfo exception)
 {
 }