Module igormaznitsa.prolog.parser
Class CharBufferOverflowException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.igormaznitsa.prologparser.exceptions.PrologParserException
-
- com.igormaznitsa.prologparser.exceptions.CharBufferOverflowException
-
- All Implemented Interfaces:
Serializable
public class CharBufferOverflowException extends PrologParserException
Specialized exception shows that allowed char buffer size of one buffers in a tokenizer is reached.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.igormaznitsa.prologparser.exceptions.PrologParserException
line, pos
-
-
Constructor Summary
Constructors Constructor Description CharBufferOverflowException(String bufferText)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBufferText()Get buffer text content which is cause of the error.-
Methods inherited from class com.igormaznitsa.prologparser.exceptions.PrologParserException
getLine, getPos, hasValidPosition, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
CharBufferOverflowException
public CharBufferOverflowException(String bufferText)
Constructor.- Parameters:
bufferText- current buffer content which is cause of the error, can be null but in the case it will be converted into empty string.
-
-
Method Detail
-
getBufferText
public String getBufferText()
Get buffer text content which is cause of the error.- Returns:
- the buffer text, can be empty but can't be null.
-
-