Class IllegalParentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.thecsdev.tcdcommons.api.client.gui.util.exceptions.IllegalParentException
- All Implemented Interfaces:
Serializable
A
RuntimeException
that is thrown when attempting to add a
child TElement
to a TParentElement
, but the said
TElement
does not support being added to said TParentElement
.- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
constructMessage
(TParentElement parent, TElement attemptedChild) final TElement
final TParentElement
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
parent
-
attemptedChild
-
-
Constructor Details
-
IllegalParentException
public IllegalParentException(TParentElement parent, TElement attemptedChild) throws NullPointerException - Throws:
NullPointerException
-
-
Method Details
-
getParent
-
getAttemptedChild
-
constructMessage
-