mirror of
https://github.com/frosch95/SmartCSV.fx.git
synced 2026-04-11 13:38:23 +02:00
added exception handling
This commit is contained in:
@@ -158,7 +158,7 @@ public class CSVModel {
|
|||||||
@Override
|
@Override
|
||||||
protected List<ValidationError> call() throws Exception {
|
protected List<ValidationError> call() throws Exception {
|
||||||
List<ValidationError> errors = new ArrayList<>();
|
List<ValidationError> errors = new ArrayList<>();
|
||||||
|
try {
|
||||||
if (header != null) {
|
if (header != null) {
|
||||||
ValidationError headerError = validator.isHeaderValid(header);
|
ValidationError headerError = validator.isHeaderValid(header);
|
||||||
if (headerError != null) {
|
if (headerError != null) {
|
||||||
@@ -187,6 +187,9 @@ public class CSVModel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (Throwable t) {
|
||||||
|
logger.error("validation error", t);
|
||||||
|
}
|
||||||
return errors;
|
return errors;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user