hussam.math.operations
Class OperatorArgumentMissingException

java.lang.Object
extended by java.lang.Throwable
extended by java.lang.Exception
extended by hussam.math.operations.MathException
extended by hussam.math.operations.MathLogicException
extended by hussam.math.operations.OperatorArgumentMissingException
All Implemented Interfaces:
java.io.Serializable

public class OperatorArgumentMissingException
extends MathLogicException

This Exception indicates a missing argument in the Math expression. For example, it could be a missing argument in (*) multiplay operand. Or it could be a missing argument in a Function.

Author:
Hussam Almulhim حسام الملحم
See Also:
Serialized Form

Constructor Summary
OperatorArgumentMissingException(java.lang.String m, Operator operator)
          Construcs a new OperatorArgumentMissingException given a meesage.
 
Method Summary
 OperatorgetOperation()
          Returns the Operation which caused the exception.
 
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

OperatorArgumentMissingException

public OperatorArgumentMissingException(java.lang.String m,
Operator operator)
Construcs a new OperatorArgumentMissingException given a meesage. and an operator.

Parameters:
operator - the operator which caused the Exception.
m - The message.
Method Detail

getOperation

public Operator getOperation()
Description copied from class: MathLogicException
Returns the Operation which caused the exception.

Overrides:
getOperation in class MathLogicException
Returns:
The operation which caused the exception.