Esempio n. 1
0
  static CifsIOException getLMException(int code) {

    CifsIOException e = new CifsIOException();

    try {
      e.fMessage = CifsRuntimeException.getMessage("LM" + code);
    } catch (Exception ex) {
      e.fMessage = CifsRuntimeException.getMessage("LMERROR", new Integer(code));
      if (Debug.debugOn) Debug.println(Debug.WARNING, "LM Error:" + code + " not defined");
    }
    return e;
  }
Esempio n. 2
0
  static CifsIOException getNBException(int code) {

    CifsIOException e = new CifsIOException();

    try {
      e.fMessage = CifsRuntimeException.getMessage("NB" + code);
    } catch (Exception ex) {
      e.fMessage = CifsRuntimeException.getMessage("NB9999", new Integer(code));
    }

    return e;
  }