edu.upenn.cis.spinal
Class SkippedSentenceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalStateException
                  extended by 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

Constructor Summary
SkippedSentenceException()
          Creates a new instance of SkippedSentenceException.
SkippedSentenceException(Sentence source)
          Creates a new instance of SkippedSentenceException and records the sentence in question.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

getSource

public Sentence getSource()
Returns the skipped sentence that caused this exception.

Returns:
a Sentence object