cvm.ncb.handlers.exception
Class IllegalMacroArgumentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by cvm.ncb.handlers.exception.IllegalMacroArgumentException
All Implemented Interfaces:
java.io.Serializable

public class IllegalMacroArgumentException
extends java.lang.Exception

This class represents the exception thrown by the macro interpreter when an illegal argument is encountered

Author:
Guangqiang Zhao
See Also:
Serialized Form

Constructor Summary
IllegalMacroArgumentException(java.lang.String macro, java.lang.String arg)
           
 
Method Summary
 java.lang.String getIllegalArgument()
          This method returns the name of the argument
 java.lang.String getMacroName()
          This method returns the name of the macro
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalMacroArgumentException

public IllegalMacroArgumentException(java.lang.String macro,
                                     java.lang.String arg)
Method Detail

getMacroName

public java.lang.String getMacroName()
This method returns the name of the macro

Returns:
the name of the macro that encounters an unexpected argument

getIllegalArgument

public java.lang.String getIllegalArgument()
This method returns the name of the argument

Returns:
the name of the argument that courses this exception