Class EmbedTagException





    • 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
    • Field Detail

      • serialVersionUID

        public static final long serialVersionUID
        This fulfils the SerialVersion UID requirement for all classes that implement Java's interface java.io.Serializable. Using the Serializable Implementation offered by java is very easy, and can make saving program state when debugging a lot easier. It can also be used in place of more complicated systems like "hibernate" to store data as well.

        Note that Java's java.lang.Exception and java.lang.Error classes implement the Serializable interface, and a warning-free build expects this field be defined here.
        See Also:
        Constant Field Values
        Code:
        Exact Field Declaration Expression:
        1
        public static final long serialVersionUID = 1;
        
      • embedTag

        public final HTMLNode embedTag
        This field is provided to the user as a matter of convenience. All instantiations of this Exception are guaranteed to enforce and ensure that when an instance of this exception is thrown, the convenience field will not be null. If this package is extended, it is up to the programmer/user to make sure not to leave this field null when using one of these constructors. This constructor will not check whether a convenience field is null or not, when constructing the exception.

        IMPORTANT: All this is really trying to explain is that, when debugging your code, if in the analysis of a particular Exception, that analysis causes another exception throw (like NullPointerException) - BECAUSE THIS CONVENIENCE FIELD WAS LEFT NULL - would be an unnecessary source of headache.

        This public, final HTMLNode should contain the tag that has caused the exception.
        See Also:
        EmbedTag
        Code:
        Exact Field Declaration Expression:
        1
        public final HTMLNode embedTag;
        
    • Constructor Detail

      • EmbedTagException

        public EmbedTagException​(HTMLNode embedTag)
        Constructs an EmbedTagException with no detail message.
        Parameters:
        embedTag - The tag that has caused the exception
      • EmbedTagException

        public EmbedTagException​(HTMLNode embedTag,
                                 java.lang.String message)
        Constructs an EmbedTagException, providing the offending tag, and a detail message about what went wrong.
        Parameters:
        embedTag - The tag that caused the exception to throw.