/// <summary>
 /// Convert an erorr message to a 2d object array for return to Excel.
 /// </summary>
 /// <param name="e">The exception that has been thrown and needs to be displaced in the cell.</param>
 /// <returns></returns>
 public static object[,] Error2D(Exception e)
 {
     ExcelUtilities.SetLatestException(e);
     return(new object[, ] {
         { "ERROR: " + e.Message }
     });
 }
 /// <summary>
 /// Convert an erorr message to an object for return to Excel.
 /// </summary>
 /// <param name="e">The exception that has been thrown and needs to be displaced in the cell.</param>
 /// <returns></returns>
 public static object Error0D(Exception e)
 {
     ExcelUtilities.SetLatestException(e);
     return("ERROR: " + e.Message);
 }