com.kuka.roboticsAPI.executionModel
Class ExecutionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.kuka.roboticsAPI.executionModel.ExecutionException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ApplicationExitException, CancelledException, CommandInvalidException, CommandNotStartedException, ExternalStopException

public class ExecutionException
extends RuntimeException

Exception that should be thrown if some error occurs during execution of a command.

See Also:
Serialized Form

Constructor Summary
ExecutionException(ICommandContainer container, String message)
          Creates an instance of ExecutionException class.
ExecutionException(ICommandContainer container, String message, Throwable cause)
          Creates an instance of ExecutionException class.
 
Method Summary
 ICommandContainer getContainer()
          Gets the execution container associated with this exception.
 
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

ExecutionException

public ExecutionException(ICommandContainer container,
                          String message)
Creates an instance of ExecutionException class.

Parameters:
container - The execution container that was executed when error occurred.
message - The error description.

ExecutionException

public ExecutionException(ICommandContainer container,
                          String message,
                          Throwable cause)
Creates an instance of ExecutionException class.

Parameters:
container - The execution container that was executed when error occurred.
message - The error description.
cause - A cause that is responsible for the error.
Method Detail

getContainer

public ICommandContainer getContainer()
Gets the execution container associated with this exception.

Returns:
Gets the execution container associated with this exception.


Copyright © 2019. All rights reserved.