com.kuka.task
Class AmbiguousInstanceException

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

public class AmbiguousInstanceException
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
AmbiguousInstanceException(Class<?> taskType)
          Constructs a new exception with the specified parameters.
AmbiguousInstanceException(String message, Class<?> taskType)
          Constructs a new exception with the specified parameters.
 
Method Summary
 String getMessage()
           
 Class<?> getTaskType()
          Returns the task type that caused the exception.
 
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

AmbiguousInstanceException

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

Parameters:
taskType - the task type that caused the exception. Will be retrievable by getTaskType().

AmbiguousInstanceException

public AmbiguousInstanceException(String message,
                                  Class<?> taskType)
Constructs a new exception with the specified parameters. The cause is not initialized.

Parameters:
message - the detail message, will part of the message returned by getMessage()
taskType - the task type that caused the exception. Will be retrievable by getTaskType().
Method Detail

getTaskType

public Class<?> getTaskType()
Returns the task type that caused the exception.

Returns:
the task type that caused the exception

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable


Copyright © 2019. All rights reserved.