docs: public boolean checkForError(Exception ex, int iErrorType, String strErrorText, String strErrorCode)
      {
          boolean bFound = false;
          String strError = ex.getMessage();
          if (strError != null)
              strError = strError.toLowerCase();
          if (iErrorType == DBConstants.FILE_NOT_FOUND)
          {
              if (strError != null)
                  if (strError.indexOf("table") != -1)
                  if (strError.indexOf("not") != -1)
                  if ((strError.indexOf("found") != -1) || (strError.indexOf("find") != -1))
                      bFound = true;
          }
          if (iErrorType == DBConstants.DUPLICATE_KEY)
          {
              if (strError != null)
                  if ((strError.indexOf("duplicate") != -1)
                      || (strError.indexOf("already exists") != -1))
                          bFound = true;
          }
          if (iErrorType == DBConstants.DUPLICATE_COUNTER)
          {
              if (strError != null)
                  if ((strError.indexOf("duplicate") != -1)
                      || (strError.indexOf("already exists") != -1))
                          if ((strError.indexOf("key 1") != -1)
                          	|| (strError.indexOf("primary") != -1)
                              || (strError.indexOf("id") != -1))
                                  bFound = true;
          }
          if (iErrorType == DBConstants.BROKEN_PIPE)
          {
              if (strError != null)
                  if ((strError.indexOf("timeout") != -1)
                      || (strError.indexOf("time-out") != -1)
                      || (strError.indexOf("time out") != -1)
                      || ((strError.indexOf("communication") != -1) || (strError.indexOf("link") != -1) || (strError.indexOf("connection") != -1) &&
                              ((strError.indexOf("failure") != -1) || (strError.indexOf("lost") != -1)))
                      || (strError.indexOf("broken") != -1))
                          bFound = true;
          }
          if (!bFound)
              if ((strErrorText != null) && (strErrorText.length() > 0))
                  if (strError != null)
                      if (strError.indexOf(strErrorText) != -1)
                          bFound = true;
          if (!bFound)
              if ((strErrorCode != null) && (strErrorCode.length() > 0))
              {
                  int iErrorCode = Integer.parseInt(strErrorCode);
                  if (ex instanceof SQLException)
                      if (((SQLException)ex).getErrorCode() == iErrorCode)
                          bFound = true;
              }
          return bFound;
      }