This method checks if an error occurs during remote execution. If an error occurs, getError() provides further information.
This method has the following syntax:
errorOccurred()
The method returns the following values:
Indicates that an error occurred.
Indicates that no error occurred.
Example
Check for error after remote execution finishes:
rt = new RemoteTarget("ascli1"); run-remote Math.cos(0) on rt -wait if(rt.errorOccurred()) { ? "Error occurred!" } else { ? get-remoteResult(rt) }
Copyright © 2013 CA. All rights reserved. |
|