org.openanzo.glitter.exception
Class InvalidArgumentCountException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.openanzo.glitter.exception.ExpressionEvaluationException
                  extended by org.openanzo.glitter.exception.InvalidArgumentCountException
All Implemented Interfaces:
java.io.Serializable

public class InvalidArgumentCountException
extends ExpressionEvaluationException

Indicates that a function or operator was passed more or less arguments than it expected.

Author:
lee
See Also:
Serialized Form

Constructor Summary
InvalidArgumentCountException(int actual, int required)
           
InvalidArgumentCountException(int actual, int requiredMin, int requiredMax)
           
 
Method Summary
 
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

InvalidArgumentCountException

public InvalidArgumentCountException(int actual,
                                     int required)
Parameters:
actual - The number of arguments supplied
required - The required number of arguments

InvalidArgumentCountException

public InvalidArgumentCountException(int actual,
                                     int requiredMin,
                                     int requiredMax)
Parameters:
actual - The number of arguments supplied
requiredMin - The minimum required number of arguments
requiredMax - The maximum required number of arguments


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.