org.sadun.text.ffp
Class TrailingCharactersException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.sadun.text.ffp.FFPParseException
org.sadun.text.ffp.TrailingCharactersException
- All Implemented Interfaces:
- java.io.Serializable
- public class TrailingCharactersException
- extends FFPParseException
An exception raised when a line is parsed correctly by a LineFormat
but not all its characters are consumed when the parsing is terminated.
- Author:
- Cristiano Sadun
- See Also:
{@link org.sadun.text.ffp.LineFormat#isFailOnTrailingChars()}.
,
Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TrailingCharactersException
public TrailingCharactersException(java.lang.CharSequence line,
LineFormat format,
java.lang.CharSequence trailing)
getFormat
public LineFormat getFormat()
- Return the
LineFormat
which has parsed the line.
- Returns:
- the
LineFormat
which has parsed the line.
getLine
public java.lang.String getLine()
- Return the line which has trailing characters.
- Returns:
- the line which has trailing characters.
getTrailing
public java.lang.CharSequence getTrailing()
- Return the trailing sequence.
- Returns:
- the trailing sequence.