Class IntervalException

All Implemented Interfaces:
Serializable

public class IntervalException extends RuntimeException
This exception is usually thrown when something goes wrong with an interval
Author:
Federico Vera <[email protected]>
See Also:
  • Constructor Details

    • IntervalException

      public IntervalException(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(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(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