Class LoadTypeError

  • All Implemented Interfaces:
    java.io.Serializable

    public class LoadTypeError
    extends java.lang.Error
    Propagates a failure loading a type.
    Author:
    Daniel Sagenschneider
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      LoadTypeError​(java.lang.Class<?> type, java.lang.String sourceClassName, CompilerIssue[] causes)
      Initiate.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addLoadTypeIssue​(Node node, CompilerIssues issues)
      Convenience method to add this as an issue to the CompilerIssues.
      CompilerIssue[] getCauses()
      Obtains the CompilerIssue instances indicating cause of not loading type.
      java.lang.String getSourceClassName()
      Obtains the name of the source class being used to load the type.
      java.lang.Class<?> getType()
      Obtains the type being attempted to be loaded.
      • 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

      • LoadTypeError

        public LoadTypeError​(java.lang.Class<?> type,
                             java.lang.String sourceClassName,
                             CompilerIssue[] causes)
        Initiate.
        Parameters:
        type - Type being attempted to be loaded.
        sourceClassName - Name of the source class being used to load the type. May also be an alias.
        causes - CompilerIssue instances indicating cause of not loading type.
    • Method Detail

      • getType

        public java.lang.Class<?> getType()
        Obtains the type being attempted to be loaded.
        Returns:
        Type being attempted to be loaded.
      • getSourceClassName

        public java.lang.String getSourceClassName()
        Obtains the name of the source class being used to load the type. May also be an alias.
        Returns:
        Name of the source class being used to load the type. May also be an alias.