/// <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); } }
/// <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); } }