Class IllegalContentsException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.tealeaf.javamarkdown.exceptions.IllegalContentsException
All Implemented Interfaces:
Serializable

public class IllegalContentsException extends RuntimeException

When thrown, indicates that an illegal element was attempted to be passed as content of another element. For example, if a NumberedList was passed into a Italic element, then this error would be thrown

Since:
0.0.8
Author:
Thomas Kwashnak
See Also:
  • Constructor Details

    • IllegalContentsException

      public IllegalContentsException(Class<?> illegalClass)

      Creates a new IllegalContents exception with the illegal class in question

      Parameters:
      illegalClass - The illegal class passed as contents
      Since:
      0.0.8
  • Method Details

    • getMessage

      public String getMessage()
      Returns the detail message string of this throwable.
      Overrides:
      getMessage in class Throwable
      Returns:
      the detail message string of this Throwable instance.
      Since:
      0.0.8