Previous Topic: RemoteTarget.destroyRemoteContext MethodNext Topic: RemoteTarget.execute Method


RemoteTarget.errorOccurred Method

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:

true

Indicates that an error occurred.

false

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)
}

See also:

RemoteTarget.getError Method