public Exception ConvertException(Exception exp) { string typeName = ""; string keyName = ""; if (NHExceptionDetector.IsDublicateException(exp, out typeName, out keyName)) { return(new InquiryJobIndexPointDuplicateException("InquiryJobIndexPoint", "JobIndexPoint")); } if (NHExceptionDetector.IsDeleteHasRelatedDataException(exp, out typeName, out keyName)) { return(new InquiryJobIndexPointDeleteException("InquiryJobIndexPoint", "Id")); } throw new Exception(); }
public Exception ConvertException(Exception exp) { string typeName = ""; string keyName = ""; if (NHExceptionDetector.IsDublicateException(exp, out typeName, out keyName)) { return(new ClaimDuplicateException("Claim", "")); } if (NHExceptionDetector.IsDeleteHasRelatedDataException(exp, out typeName, out keyName)) { return(new ClaimDeleteException("Claim", "Id")); } throw new Exception(); }
public Exception ConvertException(Exception exp) { string typeName = ""; string keyName = ""; if (NHExceptionDetector.IsDublicateException(exp, out typeName, out keyName)) { return(new UnitIndexDuplicateException(typeName, keyName)); } if (NHExceptionDetector.IsDeleteHasRelatedDataException(exp, out typeName, out keyName)) { return(new UnitIndexDeleteException(typeName, keyName)); } throw new Exception(); }
public JobIndexException ConvertException(Exception exp) { string typeName = ""; string keyName = ""; if (NHExceptionDetector.IsDublicateException(exp, out typeName, out keyName)) { return(new JobIndexDuplicateException("JobIndex", "DictionaryName")); } if (NHExceptionDetector.IsDeleteHasRelatedDataException(exp, out typeName, out keyName)) { return(new JobIndexDeleteException("JobIndex", "Id")); } throw new Exception(); }
public CustomFieldTypeException ConvertException(Exception exp) { string typeName = ""; string keyName = ""; if (NHExceptionDetector.IsDublicateException(exp, out typeName, out keyName)) { return(new CustomFieldTypeDuplicateException("CustomFieldType", "DictionaryName")); } if (NHExceptionDetector.IsDeleteHasRelatedDataException(exp, out typeName, out keyName)) { return(new CustomFieldTypeDeleteException("CustomFieldType", "Id")); } throw new Exception(); }