com.kuka.roboticsAPI.motionModel
Interface IErrorHandler


public interface IErrorHandler

Defines an error handler for asynchronous movements.


Method Summary
 ErrorHandlingAction handleError(Device device, IMotionContainer failedContainer, List<IMotionContainer> canceledContainers)
          Defines user specific error handling and an ErrorHandlingAction in case an asynchronous movement should fail.
 

Method Detail

handleError

ErrorHandlingAction handleError(Device device,
                                IMotionContainer failedContainer,
                                List<IMotionContainer> canceledContainers)
Defines user specific error handling and an ErrorHandlingAction in case an asynchronous movement should fail.

Parameters:
device - the device on which the failed asynchronous motion was commanded.
failedContainer - the container that holds the failed motion.
canceledContainers - the containers that hold motions which were canceled due to the failed motion.
Returns:
the ErrorHandlingAction describing the action that should be taken. If no specific ErrorHandlingAction is returned ( null), or an exception happens in the method, the application will be terminated as if ( ErrorHandlingAction.EndApplication) were returned.


Copyright © 2019. All rights reserved.