Added Logic to handle and report Transition Conversion errors.

Corrected logic to translate TranType 2 transitions when Range location is less than the To location.
Corrected logic for translating dates.
This commit is contained in:
Rich
2013-08-27 17:14:24 +00:00
parent 5a81462bf7
commit 891615bbc1
2 changed files with 15 additions and 17 deletions

View File

@@ -27,6 +27,7 @@ namespace DataLoader
}
class TransitionFixer
{
public static readonly log4net.ILog _MyLog = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
public event TransitionFixerEvent StatusChanged;
private void OnStatusChanged(object sender, TransitionFixerEventArgs args)
{
@@ -107,6 +108,7 @@ namespace DataLoader
catch (Exception ex)
{
Console.WriteLine("{0} {1}", ex.GetType().Name, ex.Message);
_MyLog.WarnFormat("Transition Conversion Error: {0}", ex.Message);
}
// Added for transitions to un-numbered steps
if (tran.NewTransToUnNumberedItem) item.NewTransToUnNumberedItem = true;