]> git.donarmstrong.com Git - mothur.git/blobdiff - ccode.cpp
fixes while testing 1.33.0
[mothur.git] / ccode.cpp
index ee88ba1c84838b2b9d6e4edaef2899ca81d31dee..00cd3f1948e009a86456e32bbcde2a40c6f889ac 100644 (file)
--- a/ccode.cpp
+++ b/ccode.cpp
 #include "ignoregaps.h"
 #include "eachgapdist.h"
 
-
 //***************************************************************************************************************
 Ccode::Ccode(string filename, string temp, bool f, string mask, int win, int numW, string o) : Chimera() {  
+ try { 
+       
        fastafile = filename;  
        outputDir = o; 
-       templateFileName = temp;  templateSeqs = readSeqs(temp);
+       templateFileName = temp;  templateSeqs = readSeqs(temp); 
        setMask(mask);
        filter = f;
        window = win;
@@ -63,6 +64,11 @@ Ccode::Ccode(string filename, string temp, bool f, string mask, int win, int num
                out2 << "Place in masked, filtered and trimmed sequence\tPlace in original alignment" << endl;
                out2.close();
        #endif
+       }
+       catch(exception& e) {
+               m->errorOut(e, "Ccode", "Ccode");
+               exit(1);
+       }
 }
 //***************************************************************************************************************
 Ccode::~Ccode() {