java.lang.Objectjava.lang.Throwable
java.lang.Exception
DivideByZeroException
public class DivideByZeroException
Thrown when a "divide by zero" operation is attempted for factors of type floating-point.
Constructor Summary | |
---|---|
DivideByZeroException()
The default constructor for exception class DivideByZeroException that passes a hard-coded string exception message to superclass ArithmeticException. |
|
DivideByZeroException(java.lang.String message)
Constructor for exception class DivideByZeroException that takes a custom string exception message as its parameter. |
Method Summary |
---|
Methods inherited from class |
---|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DivideByZeroException()
public DivideByZeroException(java.lang.String message)
message
- A String that is passed to its superclass.