|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
sbrt.kernel.math.ConstraintViolationException
public class ConstraintViolationException
This class is used to indicate a constraint violation.
Constructor Summary | |
---|---|
ConstraintViolationException(java.lang.Object variable,
Interval bounds,
double violatingValue)
Constructs a new constraint violation exception. |
|
ConstraintViolationException(java.lang.Object variable,
Interval bounds,
java.lang.Number violatingValue)
Constructs a new constraint violation exception. |
Method Summary | |
---|---|
Interval |
getBounds()
Returns the constraints that have been violated. |
java.lang.Number |
getValue()
Returns the value that has violated its constraints. |
java.lang.Object |
getVariable()
Returns the variable that has violated its constraints. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConstraintViolationException(java.lang.Object variable, Interval bounds, double violatingValue)
variable
- the variable whose constraints have been violated.bounds
- the constraints that have been violated.violatingValue
- the value that violates its constraints.public ConstraintViolationException(java.lang.Object variable, Interval bounds, java.lang.Number violatingValue)
variable
- the variable whose constraints have been violated.bounds
- the constraints that have been violated.violatingValue
- the value that violates its constraints.Method Detail |
---|
public java.lang.Object getVariable()
public Interval getBounds()
public java.lang.Number getValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |