Package com.dkt.graphics.exceptions
Class IntervalException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.dkt.graphics.exceptions.IntervalException
- All Implemented Interfaces:
Serializable
This exception is usually thrown when something goes wrong with an interval
- Author:
- Federico Vera <[email protected]>
- See Also:
-
Constructor Summary
ConstructorDescriptionIntervalException
(String msg, double xs, double xf, double s) Generates a new Exception based on the starting point of the interval, the last point and the step.IntervalException
(String msg, int xs, int xf) Generates a new Exception based on the starting point of the interval, the last point.IntervalException
(String msg, int xs, int xf, int x) Generates a new Exception to be thrown when a value is not in an interval -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IntervalException
Generates a new Exception based on the starting point of the interval, the last point and the step.- Parameters:
msg
- The message you want to showxs
- The starting point of the intervalxf
- The ending point of the intervals
- The step
-
IntervalException
Generates a new Exception based on the starting point of the interval, the last point. Usually is used whenxf < xs
- Parameters:
msg
- The message you want to showxs
- The starting point of the intervalxf
- The ending point of the interval
-
IntervalException
Generates a new Exception to be thrown when a value is not in an interval- Parameters:
msg
- The message you want to showxs
- The starting point of the intervalxf
- The ending point of the intervalx
- The value
-