Package net.sf.okapi.common.resource
Class InvalidContentException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- net.sf.okapi.common.resource.InvalidContentException
-
- All Implemented Interfaces:
Serializable
public class InvalidContentException extends 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
Constructors Constructor Description InvalidContentException(String text)Creates a new exception with a given text.InvalidContentException(Throwable e)Creates a new exception with a given parent exception.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InvalidContentException
public InvalidContentException(String text)
Creates a new exception with a given text.- Parameters:
text- Text to go with the new exception.
-
InvalidContentException
public InvalidContentException(Throwable e)
Creates a new exception with a given parent exception.- Parameters:
e- The parent exception.
-
-