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;
  }
  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;
  }
  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 + ")";
  }
 CifsIOException(String key, Object i1, Object i2) {
   fMessage = CifsRuntimeException.getMessage(key, i1, i2);
 }
 public CifsIOException(String key) {
   fMessage = CifsRuntimeException.getMessage(key);
 }