Package com.sos.JSHelper.Exceptions

Examples of com.sos.JSHelper.Exceptions.JSExceptionMandatoryOptionMissing


          this.SignalError(String.format("%1$s (%2$s) %3$s", this.strDescription, this.strKey, this.conNullButMandatory));
        }
      }
    }
    catch (final Exception e) {
      throw new JSExceptionMandatoryOptionMissing(e.toString());
    }
  } // public void CheckMandatory ()
View Full Code Here


    try {
      this.Delimiter(this.Delimiter());
    }
    catch (final Exception e) {
      throw new JSExceptionMandatoryOptionMissing(e.toString());
    }

    // this.ReportingClient(this.ReportingClient());
  } // public void CheckMandatory ()
View Full Code Here

    super.CheckMandatory();
    if (auth_method.isPassword() || auth_method.isPublicKey()) {
      // ok
    }
    else {
      throw new JSExceptionMandatoryOptionMissing("ErrSSH010 invalid or no AuthenticationMethod specified");
    }
    if (auth_method.isPassword()) {
      if (password.IsEmpty()) {
        throw new JSExceptionMandatoryOptionMissing("ErrSSH020 AuthenticationMethod 'password' requires a Password, but no password was specified");
      }
    }
    if (auth_method.isPublicKey()) {
      if (auth_file.IsNotEmpty()) {
        auth_file.CheckMandatory(true);
      }
      else {
        throw new JSExceptionMandatoryOptionMissing("ErrSSH050 AuthenticationMethod 'publickey' requires a keyfile, but no keyfile was specified");
      }
    }
    if (command.IsEmpty() && command_script.IsEmpty() && command_script_file.IsEmpty()) {
      throw new JSExceptionMandatoryOptionMissing("ErrSSH060 no command, command_script or command_script_file has been specified");
    }
  } // private void CheckMandatory
View Full Code Here

       {
    try {
      super.CheckMandatory();
    }
    catch (Exception e) {
      throw new JSExceptionMandatoryOptionMissing(e.toString());
    }
  } // public void CheckMandatory ()
View Full Code Here

TOP

Related Classes of com.sos.JSHelper.Exceptions.JSExceptionMandatoryOptionMissing

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.