public static string getLogError(this ArgumentException ex, string message) { var completeMessage = $"{message} :: {ex.ParamName}, {ex.Source}, {ex.Message}, {ex.StackTrace}"; ex.saveError(completeMessage); return(UtilConfig.emProducao() ? message : completeMessage); }