Пример #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;
  }
Пример #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;
  }
Пример #3
0
  CifsIOException(int errorclass, int errorcode) {
    fSMBErrorClass = errorclass;
    fSMBErrorCode = errorcode;
    String key;

    if (errorclass == ERROR_CMD) key = "255:0";
    else key = (errorclass & 0xff) + ":" + (errorcode & 0xffff);

    try {
      fMessage = CifsRuntimeException.getMessage(key);
    } catch (Exception e) {
      fMessage = CifsRuntimeException.getMessage("U:U");
    }

    fMessage = fMessage + "( SMB=" + key + ")";
  }
Пример #4
0
 CifsIOException(String key, Object i1, Object i2) {
   fMessage = CifsRuntimeException.getMessage(key, i1, i2);
 }
Пример #5
0
 public CifsIOException(String key) {
   fMessage = CifsRuntimeException.getMessage(key);
 }