Class Text2Udom.PrematureEndOfFile

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
eu.bandm.tools.d2d2.base.Text2Udom.PrematureEndOfFile
All Implemented Interfaces:
Serializable
Enclosing class:
Text2Udom

protected class Text2Udom.PrematureEndOfFile extends RuntimeException
Class to signal an attempt to read beyond the limit of the input data to the upper processing loop. Explicit end of input sources is modelled by the recognizing the pseudo-token Chars.STRING_TAGNAME_eof.

Premature end of file = physical end of file is modelled as follows:

  1. MemString.CHAR_EOTEXT is defined to 0x0000.
  2. MemScanner delivers lastTokenType()==MemScanner.TokenType.eoinput;
  3. This throws PrematureEndOfFile, iff reached whenever parsing anything! This is correct, because in a syntactially well-formed file the explicit "#eof" would have been parsed before.
See Also:
  • Field Details

    • location

      final Location<String> location
      The location where the search started for some syntactic element (input token type or special character) which led to the overrun.
    • text

      final String text
      Explains what was the kind of search action which led to the overrun.
  • Constructor Details