Hi Luc,

The FirstOrderDifferentialEquations interface has a method computeDerivatives, which also still throws the MathUserException. Did you forget that one as well, or did you intentionally leave it in?

Best regards,
Dennis


luc.maison...@free.fr wrote:
Hi Dennis,

----- Mail original -----
Hi Luc,

question: is there a reason you applied this to StepHandler, but not
FixedStepHandler?

No, I simply forgot it. I'll fix that. Thanks for reminding me about it.

The proper way to propagate exception (discussed a while ago), is to have user
set up an unchecked exception of his own. This way, he is certain [math] will
not catch it.

best regards

Luc

Best regards,
Dennis



l...@apache.org wrote:
Author: luc
Date: Sun Sep  4 14:36:48 2011
New Revision: 1165033

URL: http://svn.apache.org/viewvc?rev=1165033&view=rev
Log:
removed MathUserException from StepHandler interface

JIRA: MATH-488

Modified:
    
commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/sampling/StepHandler.java

Modified:
commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/sampling/StepHandler.java
URL:
http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/sampling/StepHandler.java?rev=1165033&r1=1165032&r2=1165033&view=diff
==============================================================================
---
commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/sampling/StepHandler.java
(original)
+++
commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/sampling/StepHandler.java
Sun Sep  4 14:36:48 2011
@@ -17,7 +17,6 @@
package org.apache.commons.math.ode.sampling; -import org.apache.commons.math.exception.MathUserException; /**
  * This interface represents a handler that should be called after
@@ -60,9 +59,7 @@ public interface StepHandler {
    * Keeping only a reference to the interpolator and reusing it
    will
    * result in unpredictable behavior (potentially crashing the
    application).
    * @param isLast true if the step is the last one
-   * @exception MathUserException if user code called from step
interpolator
-   * finalization triggers one
    */
-  void handleStep(StepInterpolator interpolator, boolean isLast)
throws MathUserException;
+  void handleStep(StepInterpolator interpolator, boolean isLast);
}



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to