Class DomainException

  • All Implemented Interfaces:
    java.io.Serializable

    public class DomainException
    extends java.lang.RuntimeException
    This exception is usually thrown when one attempts to calculate f(x) and x is not a part of the domain of f
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DomainException​(java.lang.String formula, double x)
      This constructor takes the value and a string representation of the formula
    • 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

      • DomainException

        public DomainException​(java.lang.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