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

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.objectweb.fractal.task.core.composition.FunctionExecutionException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InvalidNumberOfParameterException, InvalidParameterTypeException, NullParameterException

public class FunctionExecutionException
extends java.lang.Exception

Exception thrown by Function when an error occurs.

See Also:
Serialized Form

Constructor Summary
FunctionExecutionException(Function function)
          Creates a FunctionExecutionException.
FunctionExecutionException(Function function, java.lang.String message)
          Creates a FunctionExecutionException.
FunctionExecutionException(Function function, java.lang.String message, java.lang.Throwable cause)
          Creates a FunctionExecutionException.
FunctionExecutionException(Function function, java.lang.Throwable cause)
          Creates a FunctionExecutionException.
 
Method Summary
 Function getFunction()
           
 java.lang.String getFunctionName()
           
 void setFunctionName(java.lang.String functionName)
          Sets the name of the function to be used in the exception message.
 
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

FunctionExecutionException

public FunctionExecutionException(Function function)
Creates a FunctionExecutionException.

Parameters:
function - the function object that raise the error.

FunctionExecutionException

public FunctionExecutionException(Function function,
                                  java.lang.String message)
Creates a FunctionExecutionException.

Parameters:
function - the function object that raise the error.
message - the detail message

FunctionExecutionException

public FunctionExecutionException(Function function,
                                  java.lang.Throwable cause)
Creates a FunctionExecutionException.

Parameters:
function - the function object that raise the error.
cause - the cause

FunctionExecutionException

public FunctionExecutionException(Function function,
                                  java.lang.String message,
                                  java.lang.Throwable cause)
Creates a FunctionExecutionException.

Parameters:
function - the function object that raise the error.
message - the detail message
cause - the cause
Method Detail

getFunction

public Function getFunction()
Returns:
the function object that has been invoked with an invalid parameter.

getFunctionName

public java.lang.String getFunctionName()
Returns:
the name of the function to be used in the exception message.

setFunctionName

public void setFunctionName(java.lang.String functionName)
Sets the name of the function to be used in the exception message.

Parameters:
functionName - the name of the function to set.


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