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:
    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

    Constructors
    Constructor and Description
    `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

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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.