Class IllegalContentsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.tealeaf.javamarkdown.exceptions.IllegalContentsException
- All Implemented Interfaces:
 Serializable
 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 Summary
ConstructorsConstructorDescriptionIllegalContentsException(Class<?> illegalClass) Creates a new IllegalContents exception with the illegal class in question - 
Method Summary
Modifier and TypeMethodDescriptionReturns the detail message string of this throwable.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
- 
Constructor Details
- 
IllegalContentsException
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
Returns the detail message string of this throwable.- Overrides:
 getMessagein classThrowable- Returns:
 - the detail message string of this 
Throwableinstance. - Since:
 - 0.0.8
 
 
 -