Beispiel #1
0
 public static void SetError(OperationError error, SqlException ex)
 {
   if (ex == null)
     return;
   error.Code = Convert.ToString(ex.ErrorCode);
   error.Message = ex.Message;
 }
Beispiel #2
0
 public static void SetError(OperationError error, System.Exception ex)
 {
   if (ex == null)
     return;
   error.Code = ex.Source;
   error.Message = ex.Message;
 }