Added a getter to allow retrieving the exception related to an
exception context provider. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1164570 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c0b4954297
commit
8b24302b3d
|
@ -61,6 +61,11 @@ public class MathArithmeticException extends ArithmeticException
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** {@inheritDoc} */
|
||||||
|
public Throwable getException() {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
@Override
|
@Override
|
||||||
public String getMessage() {
|
public String getMessage() {
|
||||||
|
|
|
@ -50,6 +50,11 @@ public class MathIllegalArgumentException extends IllegalArgumentException
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** {@inheritDoc} */
|
||||||
|
public Throwable getException() {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
@Override
|
@Override
|
||||||
public String getMessage() {
|
public String getMessage() {
|
||||||
|
|
|
@ -72,6 +72,11 @@ public class MathIllegalStateException extends IllegalStateException
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** {@inheritDoc} */
|
||||||
|
public Throwable getException() {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
@Override
|
@Override
|
||||||
public String getMessage() {
|
public String getMessage() {
|
||||||
|
|
|
@ -58,6 +58,11 @@ public class MathUnsupportedOperationException extends UnsupportedOperationExcep
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** {@inheritDoc} */
|
||||||
|
public Throwable getException() {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
@Override
|
@Override
|
||||||
public String getMessage() {
|
public String getMessage() {
|
||||||
|
|
|
@ -85,6 +85,11 @@ public class MathUserException extends RuntimeException
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** {@inheritDoc} */
|
||||||
|
public Throwable getException() {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
@Override
|
@Override
|
||||||
public String getMessage() {
|
public String getMessage() {
|
||||||
|
|
|
@ -30,4 +30,10 @@ public interface ExceptionContextProvider {
|
||||||
* @return a reference to the exception context.
|
* @return a reference to the exception context.
|
||||||
*/
|
*/
|
||||||
ExceptionContext getContext();
|
ExceptionContext getContext();
|
||||||
|
|
||||||
|
/** Get a reference to the exception to which the context relates.
|
||||||
|
* @return a reference to the exception to which the context relates
|
||||||
|
*/
|
||||||
|
Throwable getException();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,6 +52,10 @@ The <action> type attribute can be add,update,fix,remove.
|
||||||
If the output is not quite correct, check for invisible trailing spaces!
|
If the output is not quite correct, check for invisible trailing spaces!
|
||||||
-->
|
-->
|
||||||
<release version="3.0" date="TBD" description="TBD">
|
<release version="3.0" date="TBD" description="TBD">
|
||||||
|
<action dev="luc" type="add" >
|
||||||
|
Added a getter to allow retrieving the exception related to an exception context
|
||||||
|
provider.
|
||||||
|
</action>
|
||||||
<action dev="psteitz" type="update" issue="MATH-364" due-to="Christian Winter">
|
<action dev="psteitz" type="update" issue="MATH-364" due-to="Christian Winter">
|
||||||
Added erf(double,double) to Erf and used this to improve tail probability
|
Added erf(double,double) to Erf and used this to improve tail probability
|
||||||
accuracy in NormalDistributionImpl.
|
accuracy in NormalDistributionImpl.
|
||||||
|
|
Loading…
Reference in New Issue