edu.upenn.cis.spinal
Class SkippedSentenceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
edu.upenn.cis.spinal.SkippedSentenceException
- All Implemented Interfaces:
- Serializable
public class SkippedSentenceException
- extends IllegalStateException
Exception thrown when a method is called on an object representing
a skipped sentence in the LTAG-spinal treebank.
- Author:
- Lucas Champollion
- See Also:
- Serialized Form
Method Summary |
Sentence |
getSource()
Returns the skipped sentence that caused this exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
SkippedSentenceException
public SkippedSentenceException()
- Creates a new instance of
SkippedSentenceException
.
SkippedSentenceException
public SkippedSentenceException(Sentence source)
- Creates a new instance of
SkippedSentenceException
and records the
sentence in question.
- Parameters:
source
- the sentence that caused this exception
getSource
public Sentence getSource()
- Returns the skipped sentence that caused this exception.
- Returns:
- a
Sentence
object