hussam.math.operations
Class MathLogicException

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
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
OperatorArgumentMissingException

public class MathLogicException
extends MathException

This Exception indicates a problem in the Logic of the Math expression. For example, it could be a devision by 0 problem, or an inifinite loop problem. etc...

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

Constructor Summary
MathLogicException(java.lang.String m, Operation source)
          Construcs a new MathLogicException having a message and the Operator that caused the the exception.
 
Method Summary
 OperationgetOperation()
          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

MathLogicException

public MathLogicException(java.lang.String m,
Operation source)
Construcs a new MathLogicException having a message and the Operator that caused the the exception.

Parameters:
m - the message
source - the source of this Error.
Method Detail

getOperation

public Operation getOperation()
Returns the Operation which caused the exception.

Returns:
The operation which caused the exception.