This method checks if an error occurs during remote execution. If an error occurs, errout() may provide an error description.
This method has the following syntax:
errorOccurred()
The method returns the following values:
Indicates that an error occurred.
Indicates that no error occurred.
Example
Execute invalid command with error check:
!! asdfghjk
if($$stdout.errorOccurred())
? "Error:", $$stdout.errout()
else
? $$stdout.output()
|
Copyright © 2013 CA.
All rights reserved.
|
|