code: protected final String findErrorDesc(int errorType, int currEvent)
      {
          String msg = getErrorDesc(errorType, currEvent);
          if (msg != null) {
              return msg;
          }
          switch (errorType) {
          case ERR_GETELEMTEXT_NOT_START_ELEM:
              return "Current state not START_ELEMENT when calling getElementText()";
          case ERR_GETELEMTEXT_NON_TEXT_EVENT:
              return "Expected a text token";
          case ERR_NEXTTAG_NON_WS_TEXT:
              return "Only all-whitespace CHARACTERS/CDATA (or SPACE) allowed for nextTag()";
          case ERR_NEXTTAG_WRONG_TYPE:
              return "Should only encounter START_ELEMENT/END_ELEMENT, SPACE, or all-white-space CHARACTERS";
          }
  
          // should never happen, but it'd be bad to throw another exception...
          return "Internal error (unrecognized error type: "+errorType+")";
      }
docs: Method used to locate error message description to use.
  Calls sub-classes <code>getErrorDesc()</code> first, and only
  if no message found, uses default messages defined here.