Class DomainException

All Implemented Interfaces:
Serializable

public class DomainException extends RuntimeException
This exception is usually thrown when one attempts to calculate f(x) and x is not a part of the domain of f
Author:
Federico Vera <[email protected]>
See Also:
  • Constructor Details

    • DomainException

      public DomainException(String formula, double x)
      This constructor takes the value and a string representation of the formula
      Parameters:
      formula - The String representation of the formula
      x - The value