com.kuka.task
Class AmbiguousInstanceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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
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().
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.