cdx
Class ZeroVectorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.ArithmeticException
                  extended by cdx.ZeroVectorException
All Implemented Interfaces:
java.io.Serializable

public class ZeroVectorException
extends java.lang.ArithmeticException

The ZeroVectorException exception is thrown by utilities that perform calculations on vectors. If a particular operation is undefined for the zero vector, a ZeroVectorException exception is thrown. The motivation for this class (as opposed to using a standard ArithmeticException) is to allow filtering based on the type of the exception.

See Also:
Serialized Form

Constructor Summary
ZeroVectorException(java.lang.String msg)
          The only constructor for the ZeroVectorException class takes a string as an argument and simply calls the super constructor.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZeroVectorException

public ZeroVectorException(java.lang.String msg)
The only constructor for the ZeroVectorException class takes a string as an argument and simply calls the super constructor.

Parameters:
msg - a message describing the operation that caused the exception