|
|||||||||
| 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
edu.wpi.first.wpilibj.util.BoundaryException
public class BoundaryException
This exception represents an error in which a lower limit was set as higher than an upper limit.
| Constructor Summary | |
|---|---|
BoundaryException(java.lang.String message)
Create a new exception with the given message |
|
| Method Summary | |
|---|---|
static void |
assertWithinBounds(double value,
double lower,
double upper)
Make sure that the given value is between the upper and lower bounds, and throw an exception if they are not. |
| 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 BoundaryException(java.lang.String message)
message - the message to attach to the exception| Method Detail |
|---|
public static void assertWithinBounds(double value,
double lower,
double upper)
value - The value to check.lower - The minimum acceptable value.upper - The maximum acceptable value.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||