net.sf.okapi.common.resource
Class InvalidContentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.sf.okapi.common.resource.InvalidContentException
All Implemented Interfaces:
java.io.Serializable

public class InvalidContentException
extends java.lang.RuntimeException

Indicates that an action was trying to inline code or codes incompatible between themselves. For example the list of the codes provided with a TextFragment.setCodedText() does not match the inline codes in the provided coded text string.

See Also:
Serialized Form

Constructor Summary
InvalidContentException(java.lang.String text)
          Creates a new exception with a given text.
InvalidContentException(java.lang.Throwable e)
          Creates a new exception with a given parent exception.
 
Method Summary
 
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

InvalidContentException

public InvalidContentException(java.lang.String text)
Creates a new exception with a given text.

Parameters:
text - Text to go with the new exception.

InvalidContentException

public InvalidContentException(java.lang.Throwable e)
Creates a new exception with a given parent exception.

Parameters:
e - The parent exception.