org.objectweb.fractal.task.core.composition
Class InvalidNumberOfParameterException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.objectweb.fractal.task.core.composition.FunctionExecutionException
              extended by org.objectweb.fractal.task.core.composition.InvalidNumberOfParameterException
All Implemented Interfaces:
java.io.Serializable

public class InvalidNumberOfParameterException
extends FunctionExecutionException

Exception thrown by Function when an invalid number of parameter is received.

See Also:
Serialized Form

Constructor Summary
InvalidNumberOfParameterException(Function function, int expected, int actual)
          Creates a new InvalidParameterTypeException.
InvalidNumberOfParameterException(Function function, int expected, int actual, java.lang.String message)
          Creates a new InvalidParameterTypeException.
 
Method Summary
 java.lang.String getMessage()
           
 
Methods inherited from class org.objectweb.fractal.task.core.composition.FunctionExecutionException
getFunction, getFunctionName, setFunctionName
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

InvalidNumberOfParameterException

public InvalidNumberOfParameterException(Function function,
                                         int expected,
                                         int actual)
Creates a new InvalidParameterTypeException.

Parameters:
function - the function object that has been invoked with an invalid parameter.
expected - the expected number of parameter
actual - the actual number of parameter

InvalidNumberOfParameterException

public InvalidNumberOfParameterException(Function function,
                                         int expected,
                                         int actual,
                                         java.lang.String message)
Creates a new InvalidParameterTypeException.

Parameters:
function - the function object that has been invoked with an invalid parameter.
expected - the expected number of parameter
actual - the actual number of parameter
message - an additional message.
Method Detail

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable


Copyright © 2007-2009 ObjectWeb Consortium. All Rights Reserved.