The command-line APIs, as well as the actual command execution, can generate one of the following Java exceptions:
AuthenticationException - Result of improper user name and password for login
Network Exception - Result of a network transport problem
CommandException - Result of an error while executing a command on the MS.
ConfigurationException - Result of an improper CLI directory layout or other startup problem.