trassare.com

com.trassare.calculator.engine
Class Operation.OperationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.trassare.calculator.engine.Operation.OperationException
All Implemented Interfaces:
Serializable
Enclosing class:
Operation

public static class Operation.OperationException
extends Exception

An exception to indicate an invalid number in an operation. Useful to trigger a checked exception that the InfixCalculator can catch and handle.

Version:
8 September 2006
Author:
Samuel T Trassare
See Also:
Serialized Form

Constructor Summary
Operation.OperationException()
          Constructs an OperationException as an Exception.
Operation.OperationException(String s)
          Constructs a OperationException with error message s.
 
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

Operation.OperationException

public Operation.OperationException()
Constructs an OperationException as an Exception.


Operation.OperationException

public Operation.OperationException(String s)
Constructs a OperationException with error message s.

Parameters:
s - the error message for this ScanException

trassare.com