Package eu.bandm.tools.d2d2.base
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
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:
-
MemString.CHAR_EOTEXT
is defined to 0x0000. - MemScanner delivers lastTokenType()==MemScanner.TokenType.eoinput;
- 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 Summary
Modifier and TypeFieldDescriptionThe location where the search started for some syntactic element (input token type or special character) which led to the overrun.(package private) final String
Explains what was the kind of search action which led to the overrun. -
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
location
The location where the search started for some syntactic element (input token type or special character) which led to the overrun. -
text
Explains what was the kind of search action which led to the overrun.
-
-
Constructor Details
-
PrematureEndOfFile
Only constructor
-