org.overlord.sramp.shell.api
Class InvalidCommandArgumentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.overlord.sramp.shell.api.InvalidCommandArgumentException
All Implemented Interfaces:
Serializable

public class InvalidCommandArgumentException
extends Exception

An exception thrown when an argument to a command is invalid.

Author:
eric.wittmann@redhat.com
See Also:
Serialized Form

Constructor Summary
InvalidCommandArgumentException(int argumentIndex, String message)
          Constructor.
 
Method Summary
 int getArgumentIndex()
           
 void setArgumentIndex(int argumentIndex)
           
 
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

InvalidCommandArgumentException

public InvalidCommandArgumentException(int argumentIndex,
                                       String message)
Constructor.

Method Detail

getArgumentIndex

public int getArgumentIndex()
Returns:
the argumentIndex

setArgumentIndex

public void setArgumentIndex(int argumentIndex)
Parameters:
argumentIndex - the argumentIndex to set


Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.