com.rubecula.jquantity
Class InvalidOperandException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.rubecula.util.BaseException
              extended bycom.rubecula.jquantity.InvalidOperandException
All Implemented Interfaces:
java.io.Serializable

public class InvalidOperandException
extends BaseException

A checked exception intended to be internal to the JQuantity package, which indicates that when a mathematical operation A op B is invoked, the class of B is not valid for the operation on A. The remedy may be to try invoking ~(B op A) where ~ indicates that the result of the operation should be "inverted".

Version:
$Revision: 1.2 $
Author:
Robin Hillyard
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
InvalidOperandException(java.lang.String message)
           
InvalidOperandException(java.lang.String message, java.lang.Throwable cause)
           
 
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

InvalidOperandException

public InvalidOperandException(java.lang.String message)

InvalidOperandException

public InvalidOperandException(java.lang.String message,
                               java.lang.Throwable cause)