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; }