Catch Exception, which handles all CSV exceptions
This commit is contained in:
parent
00f1357af1
commit
d61301af6d
@ -1,5 +1,6 @@
|
||||
package com.belkast.soap;
|
||||
|
||||
import org.apache.commons.csv.CSVException;
|
||||
import org.apache.commons.csv.CSVFormat;
|
||||
import org.apache.commons.csv.CSVRecord;
|
||||
|
||||
@ -111,16 +112,19 @@ public class userVerify
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (IOException | IllegalArgumentException e)
|
||||
catch (Exception e)
|
||||
{
|
||||
exceptionReason = e.toString();
|
||||
exceptionReason = e.getMessage();
|
||||
failedOnException = true;
|
||||
break;
|
||||
}
|
||||
parsedCorrectly = true;
|
||||
}
|
||||
|
||||
debugProcessor.writer(fromUser,"");
|
||||
if (readNum > 0)
|
||||
{
|
||||
debugProcessor.writer(fromUser,"");
|
||||
}
|
||||
debugProcessor.writer(fromUser, "CSV lines read : " + String.valueOf(readNum));
|
||||
debugProcessor.writer(fromUser, "CSV lines passed : " + String.valueOf(readNum - invalidNum));
|
||||
debugProcessor.writer(fromUser, "CSV lines failed : " + invalidNum);
|
||||
|
Loading…
x
Reference in New Issue
Block a user