Commit 980c3785 authored by R.W.Majeed's avatar R.W.Majeed

deprecated constructors removed from ObservationException

parent 4ad9be44
......@@ -32,22 +32,15 @@ public class ObservationException extends Exception{
private Observation fact;
public ObservationException(String message){
super(message);
}
public ObservationException(Throwable cause){
super(cause);
}
public ObservationException(String message, Throwable cause) {
super(message, cause);
}
@Deprecated
public ObservationException(Observation fact, Throwable cause){
super(cause);
this.fact = fact;
}
@Deprecated
public ObservationException(String message, Observation fact, Throwable cause){
super(message, cause);
this.fact = fact;
}
/**
* Set the observation associated with this exception
* @param fact associated observation
......
......@@ -190,7 +190,7 @@ public class I2b2Inserter extends AbstractObservationHandler implements Observat
try{
etlPreprocessor.preprocess(o);
}catch( SQLException e ){
reportError(new ObservationException(o, e));
throw new ObservationException("ETL preprocessing failed", e);
}
}
......@@ -206,7 +206,7 @@ public class I2b2Inserter extends AbstractObservationHandler implements Observat
} catch (SQLException suppressed) {
e.addSuppressed(suppressed);
}
throw new ObservationException(o, e);
throw new ObservationException("Insert failed",e);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment