com.kuka.task
Class InstanceNotRunningException

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

public class InstanceNotRunningException
extends RuntimeException

Is thrown when a task function is requested for a task that allows multiple instances to be spawned without specifying the concrete instance.

See Also:
Serialized Form

Constructor Summary
InstanceNotRunningException(Class<?> functionType)
          Constructs a new exception with the specified parameters.
 
Method Summary
 Class<?> getFunctionType()
          Returns the task function that caused the exception.
 String getMessage()
           
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceNotRunningException

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

Parameters:
functionType - the function type that caused the exception. Will be retrievable by getFunctionType().
Method Detail

getFunctionType

public Class<?> getFunctionType()
Returns the task function that caused the exception.

Returns:
the task function that caused the exception

toString

public String toString()
Overrides:
toString in class Throwable

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable


Copyright © 2019. All rights reserved.