com.kuka.command
Interface IExecutionResult


public interface IExecutionResult

Represents the result of execution of a command.

Can be retrieved using methods ICommandExecutionContainer.getResult() or ICommandExecutionContainer.awaitFinalized() when container reaches its "finalized" state.


Method Summary
 CommandExecutionException getError()
          Returns exception with which command was finished if some error happened during execution of a command.
 boolean isCompleted()
          True if command execution container was ended normally (without errors or was not canceled).
 boolean wasCanceled()
          True if command execution container was canceled by user before it was finished.
 

Method Detail

wasCanceled

boolean wasCanceled()
True if command execution container was canceled by user before it was finished.

If this method returns true then isCompleted() will return false.

Returns:
true if command execution container was canceled by user before it was finished.

isCompleted

boolean isCompleted()
True if command execution container was ended normally (without errors or was not canceled).

Returns:
true if command execution container was ended normally (without errors or was not canceled).

getError

CommandExecutionException getError()
Returns exception with which command was finished if some error happened during execution of a command.

Returns:
Returns exception with which command was finished if some error happened during execution of a command, or null if command was ended correctly.


Copyright © 2019. All rights reserved.