agg.parser
Class InvalidAlgorithmException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by agg.parser.InvalidAlgorithmException
All Implemented Interfaces:
java.io.Serializable

public class InvalidAlgorithmException
extends java.lang.Exception

This exception should be thrown by the isCritical() method of an object that implements a concrete stategy of a critical pair.

See Also:
Serialized Form

Constructor Summary
InvalidAlgorithmException()
          InvalidAlgorithmException default constructor with a standard message and the standard kind of algorithm
InvalidAlgorithmException(java.lang.String message)
          InvalidAlgorithmException creates a exception with a specified message and the standard kind of algorithm
InvalidAlgorithmException(java.lang.String message, int algorithm)
          InvalidAlgorithmException creates a exception with a specified message and the kind of algorithm which causes the error.
 
Method Summary
 int getKindOfInvalidAlgorithm()
          getKindOfInvalidAlgorithm returns the kind of algorithm which causes 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

InvalidAlgorithmException

public InvalidAlgorithmException()
InvalidAlgorithmException default constructor with a standard message and the standard kind of algorithm


InvalidAlgorithmException

public InvalidAlgorithmException(java.lang.String message)
InvalidAlgorithmException creates a exception with a specified message and the standard kind of algorithm

Parameters:
message - The message.

InvalidAlgorithmException

public InvalidAlgorithmException(java.lang.String message,
                                 int algorithm)
InvalidAlgorithmException creates a exception with a specified message and the kind of algorithm which causes the error.

Parameters:
message - the message for exception
algorithm - The algorithm causes the exception.
Method Detail

getKindOfInvalidAlgorithm

public int getKindOfInvalidAlgorithm()
getKindOfInvalidAlgorithm returns the kind of algorithm which causes the exception

Returns:
The algorithm.