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);
 }
Esempio n. 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);
            }
        }
 private void HandleGetAllProblemsByClinicalCaseException( ExceptionInfo ex )
 {
     IsLoading = false;
     _userDialogService.ShowDialog ( ex.Message, "Could not get all problems by clinical case key", UserDialogServiceOptions.Ok );
 }
Esempio n. 5
0
 private void HandleGetPayorTypesException( ExceptionInfo ex )
 {
     IsLoading = false;
     _userDialogService.ShowDialog ( ex.Message, "Get Payor Types list failed.", UserDialogServiceOptions.Ok );
 }
Esempio n. 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 );
 }
Esempio n. 8
0
 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 );
 }
Esempio n. 10
0
 private void HandleSaveSelfPaymentRequestError( ExceptionInfo exceptionInfo )
 {
     _userDialogService.ShowDialog ( exceptionInfo.Message, "Error saving Self payment.", UserDialogServiceOptions.Ok );
     IsLoading = false;
 }
Esempio n. 11
0
 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 );
 }
Esempio n. 13
0
 private void HandleRequestDispatcherException( ExceptionInfo exceptionInfo )
 {
     IsLoading = false;
     _userDialogService.ShowDialog ( exceptionInfo.Message, "Sending C32 failed.", UserDialogServiceOptions.Ok );
 }
Esempio n. 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 );
 }
Esempio n. 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;
 }
Esempio n. 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 );
 }
Esempio n. 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 );
 }
Esempio n. 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 );
 }
Esempio n. 24
0
 private void HandleGenerateHcc837ProfessionalException( ExceptionInfo ex )
 {
     IsLoading = false;
     _userDialogService.ShowDialog (
         ex.Message, "Could not generate health care claim 837 professional message.", UserDialogServiceOptions.Ok );
 }
Esempio n. 25
0
 private void HandleCreateNewClinicalCaseRequestDispatcherException( ExceptionInfo exceptionInfo )
 {
     _userDialogService.ShowDialog ( exceptionInfo.Message, "Clinical Case created failed.", UserDialogServiceOptions.Ok );
 }
Esempio n. 26
0
 private void HandleResetTestDataException( ExceptionInfo ex )
 {
     IsLoading = false;
     _userDialogService.ShowDialog ( ex.Message, "Could not reset test data.", UserDialogServiceOptions.Ok );
 }
Esempio n. 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 );
 }
Esempio n. 28
0
 private void HandleDeleteProblemException( ExceptionInfo ex )
 {
     IsLoading = false;
     _userDialogService.ShowDialog ( ex.Message, "Could not delete", UserDialogServiceOptions.Ok );
 }
Esempio n. 29
0
 private void HandleEditRequestDispatcherException( ExceptionInfo exceptionInfo )
 {
     _userDialogService.ShowDialog ( exceptionInfo.Message, "Load job function failed.", UserDialogServiceOptions.Ok );
     IsLoading = false;
 }
Esempio n. 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 );
 }
Esempio n. 31
0
 protected virtual void DealWithUnknownException(ExceptionInfo exception)
 {
 }