예제 #1
0
 /// <summary>
 /// Log an exception.
 /// </summary>
 /// <param name="message">Message that should be logged in addition to the exception itself.</param>
 /// <param name="e">The exception to be logged.</param>
 public void Exception(string message, Exception e)
 {
     Error(message);
     if (e is HPMSdkException)
     {
         HPMSdkException hpme = (HPMSdkException)e;
         Error(hpme.ErrorAsStr() + " @ " + e.StackTrace);
     }
     else
     {
         Error(e.Message + " @ " + e.StackTrace);
     }
 }
예제 #2
0
 /// <summary>
 /// Log an exception.
 /// </summary>
 /// <param name="message">Message that should be logged in addition to the exception itself.</param>
 /// <param name="e">The exception to be logged.</param>
 public void Exception(string message, Exception e)
 {
     DisplayMessage("Exception: " + message);
     if (e is HPMSdkException)
     {
         HPMSdkException hpme = (HPMSdkException)e;
         Error(hpme.ErrorAsStr());
     }
     else
     {
         Error(e.Message);
     }
 }