edu.wpi.first.wpilibj.util
Class BoundaryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
edu.wpi.first.wpilibj.util.BoundaryException
public class BoundaryException
- extends RuntimeException
This exception represents an error in which a lower limit was set as higher
than an upper limit.
- Author:
- dtjones
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. |
BoundaryException
public BoundaryException(String message)
- Create a new exception with the given message
- Parameters:
message
- the message to attach to the exception
assertWithinBounds
public 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.
- Parameters:
value
- The value to check.lower
- The minimum acceptable value.upper
- The maximum acceptable value.
"For updated information see the Java FRC site"