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;
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public Throwable getException() {
|
||||
return this;
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public String getMessage() {
|
||||
|
|
|
@ -50,6 +50,11 @@ public class MathIllegalArgumentException extends IllegalArgumentException
|
|||
return context;
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public Throwable getException() {
|
||||
return this;
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public String getMessage() {
|
||||
|
|
|
@ -72,6 +72,11 @@ public class MathIllegalStateException extends IllegalStateException
|
|||
return context;
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public Throwable getException() {
|
||||
return this;
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public String getMessage() {
|
||||
|
|
|
@ -58,6 +58,11 @@ public class MathUnsupportedOperationException extends UnsupportedOperationExcep
|
|||
return context;
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public Throwable getException() {
|
||||
return this;
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public String getMessage() {
|
||||
|
|
|
@ -85,6 +85,11 @@ public class MathUserException extends RuntimeException
|
|||
return context;
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public Throwable getException() {
|
||||
return this;
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public String getMessage() {
|
||||
|
|
|
@ -30,4 +30,10 @@ public interface ExceptionContextProvider {
|
|||
* @return a reference to the exception context.
|
||||
*/
|
||||
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!
|
||||
-->
|
||||
<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">
|
||||
Added erf(double,double) to Erf and used this to improve tail probability
|
||||
accuracy in NormalDistributionImpl.
|
||||
|
|
Loading…
Reference in New Issue