List of usage examples for org.apache.commons.math MathException printStackTrace
@Override public void printStackTrace(PrintStream out)
From source file:edu.utexas.cs.tactex.servercustomers.factoredcustomer.ProbabilityDistribution.java
double drawSample() { try {/*from w ww. j av a 2s . co m*/ return sampler.sample(); } catch (MathException e) { System.err.println("ProbabilityDistribution(" + toString() + ") - drawSample():" + toString() + " Caught MathException:\n"); e.printStackTrace(System.err); throw new Error("ProbabilityDistribution(" + toString() + ") - drawSample(): Caught MathException: " + e.toString()); } }