Package com.dkt.graphics.exceptions
Class DomainException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.dkt.graphics.exceptions.DomainException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorDescriptionDomainException
(String formula, double x) This constructor takes the value and a string representation of the formula -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DomainException
This constructor takes the value and a string representation of the formula- Parameters:
formula
- TheString
representation of the formulax
- The value
-