csheets.core.formula.lang
Class DivisionByZeroException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by csheets.core.formula.lang.DivisionByZeroException
All Implemented Interfaces:
Serializable

public class DivisionByZeroException
extends Exception

An exception that is thrown when a division by zero is evaluated.

Author:
Einar Pehrson
See Also:
Serialized Form

Constructor Summary
DivisionByZeroException(Expression expression)
          Creates a new division-by-zero exception.
 
Method Summary
 String toString()
          Returns a string representation of the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DivisionByZeroException

public DivisionByZeroException(Expression expression)
Creates a new division-by-zero exception.

Parameters:
expression - the expression that evaluated to zero
Method Detail

toString

public String toString()
Returns a string representation of the exception.

Overrides:
toString in class Throwable
Returns:
a string representation of the exception