Copyright (C) 2003,2004 dr. Cristiano Sadun

org.sadun.text.ffp
Class TrailingCharactersException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.sadun.text.ffp.FFPParseException
              extended byorg.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

Constructor Summary
TrailingCharactersException(java.lang.CharSequence line, LineFormat format, java.lang.CharSequence trailing)
           
 
Method Summary
 LineFormat getFormat()
          Return the LineFormat which has parsed the line.
 java.lang.String getLine()
          Return the line which has trailing characters.
 java.lang.CharSequence getTrailing()
          Return the trailing sequence.
 
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
 

Constructor Detail

TrailingCharactersException

public TrailingCharactersException(java.lang.CharSequence line,
                                   LineFormat format,
                                   java.lang.CharSequence trailing)
Method Detail

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.

Copyright (C) 2003,2004 dr. Cristiano Sadun