code: public String getLastError(int iErrorCode)
      {
          if ((m_strLastError == null) || ((iErrorCode != 0) && (iErrorCode != m_iLastErrorCode)))
              return Constants.BLANK;
          String string = m_strLastError;
          m_strLastError = null;
          return string;
      }
docs: Get the last error code.
  This call clears the last error code.
  @param iErrorCode Pass the error code of the last error code or 0 to get the last error.