com.kuka.task
Class FunctionNotAvailableException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.kuka.task.FunctionNotAvailableException
All Implemented Interfaces:
Serializable

public class FunctionNotAvailableException
extends RuntimeException

Is thrown when the requested task function is not known.

See Also:
Serialized Form

Constructor Summary
FunctionNotAvailableException(Class<?> function)
          Constructs a new exception with the specified parameters.
FunctionNotAvailableException(Class<?> function, ITaskInstance instance)
          Constructs a new exception with the specified parameters.
 
Method Summary
 Class<?> getFunction()
          Returns the requested function causing this exception.
 String getMessage()
           
 
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

FunctionNotAvailableException

public FunctionNotAvailableException(Class<?> function)
Constructs a new exception with the specified parameters. The cause is not initialized.

Parameters:
function - The function not available is saved for later retrieval by the getFunction() method.

FunctionNotAvailableException

public FunctionNotAvailableException(Class<?> function,
                                     ITaskInstance instance)
Constructs a new exception with the specified parameters. The cause is not initialized.

Parameters:
function - The function not available is saved for later retrieval by the getFunction() method.
instance - the task instance that was asked for the task function
Method Detail

getFunction

public Class<?> getFunction()
Returns the requested function causing this exception.

Returns:
the causing unavailable function.

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable


Copyright © 2019. All rights reserved.