Re: [Math] Catching "RuntimeException"
Le 06/10/2011 22:36, Gilles Sadowski a écrit : Hello. Hi Gilles, In the code in the following classes BaseMultiStartMultivariateRealOptimizer BaseMultiStartMultivariateVectorialOptimizer there is a catch(RuntimeException e) This contradicts the statement (in "UnivariateRealFunction") stating that user-defined exceptions are never caught by CM. Not really. The exceptions are catch in order to allow a retry, which is the exact purpose of multi-start. If everything fails, the last exception is rethrown. OK. How to deactivate the CheckStyle warning? We can use checkstyle filters. I have fixed these as of r1179947. Thanks for spotting this. Luc Gilles - 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
Re: [Math] Catching "RuntimeException"
Hello. > >In the code in the following classes > > BaseMultiStartMultivariateRealOptimizer > > BaseMultiStartMultivariateVectorialOptimizer > >there is a > > catch(RuntimeException e) > > > >This contradicts the statement (in "UnivariateRealFunction") stating that > >user-defined exceptions are never caught by CM. > > Not really. The exceptions are catch in order to allow a retry, > which is the exact purpose of multi-start. If everything fails, the > last exception is rethrown. > OK. How to deactivate the CheckStyle warning? Gilles - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org
Re: [Math] Catching "RuntimeException"
Le 06/10/2011 17:24, Gilles Sadowski a écrit : Hello. In the code in the following classes BaseMultiStartMultivariateRealOptimizer BaseMultiStartMultivariateVectorialOptimizer there is a catch(RuntimeException e) This contradicts the statement (in "UnivariateRealFunction") stating that user-defined exceptions are never caught by CM. Not really. The exceptions are catch in order to allow a retry, which is the exact purpose of multi-start. If everything fails, the last exception is rethrown. Luc Regards, Gilles - 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
[Math] Catching "RuntimeException"
Hello. In the code in the following classes BaseMultiStartMultivariateRealOptimizer BaseMultiStartMultivariateVectorialOptimizer there is a catch(RuntimeException e) This contradicts the statement (in "UnivariateRealFunction") stating that user-defined exceptions are never caught by CM. Regards, Gilles - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org