Class DivideByZeroException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by DivideByZeroException
All Implemented Interfaces:
java.io.Serializable

public class DivideByZeroException
extends java.lang.Exception

Thrown when a "divide by zero" operation is attempted for factors of type floating-point.

Version:
Copyright (c) 2002 -- SCCC West
Author:
Prof. Carl B. Struck
See Also:
Serialized Form

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

DivideByZeroException

public DivideByZeroException()
The default constructor for exception class DivideByZeroException that passes a hard-coded string exception message to superclass ArithmeticException.


DivideByZeroException

public DivideByZeroException(java.lang.String message)
Constructor for exception class DivideByZeroException that takes a custom string exception message as its parameter. Passes the message to superclass ArithmeticException.

Parameters:
message - A String that is passed to its superclass.