Class IntervalException

  • All Implemented Interfaces:
    java.io.Serializable

    public class IntervalException
    extends java.lang.RuntimeException
    This exception is usually thrown when something goes wrong with an interval
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      IntervalException​(java.lang.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​(java.lang.String msg, int xs, int xf)
      Generates a new Exception based on the starting point of the interval, the last point.
      IntervalException​(java.lang.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.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
    • Constructor Detail

      • IntervalException

        public IntervalException​(java.lang.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.
        Parameters:
        msg - The message you want to show
        xs - The starting point of the interval
        xf - The ending point of the interval
        s - The step
      • IntervalException

        public IntervalException​(java.lang.String msg,
                                 int xs,
                                 int xf)
        Generates a new Exception based on the starting point of the interval, the last point. Usually is used when xf < xs
        Parameters:
        msg - The message you want to show
        xs - The starting point of the interval
        xf - The ending point of the interval
      • IntervalException

        public IntervalException​(java.lang.String msg,
                                 int xs,
                                 int xf,
                                 int x)
        Generates a new Exception to be thrown when a value is not in an interval
        Parameters:
        msg - The message you want to show
        xs - The starting point of the interval
        xf - The ending point of the interval
        x - The value