Beispiel #1
0
 /// <summary>
 /// Report operation error; it is a lighter version of a error, and may be expected to
 /// occur during normal operation of the application (for. ex. a given non critical
 /// resource was not retrieved, operation has timed out etc.)
 /// </summary>
 /// <param name="errorMessage"></param>
 public static void OperationError(string errorMessage)
 {
     TracerHelper.TraceOperationError(errorMessage);
     if (GlobalDiagnosticsMode)
     {
         Debug.Fail(errorMessage);
     }
 }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="errorMessage"></param>
 public static void OperationError(string errorMessage, TracerItem.PriorityEnum priority)
 {
     TracerHelper.TraceOperationError(errorMessage);
     if ((GlobalDiagnosticsMode && priority > TracerItem.PriorityEnum.Medium) ||
         priority == TracerItem.PriorityEnum.Critical)
     {
         Debug.Fail(errorMessage);
     }
 }