Class LoadTypeError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Error
-
- net.officefloor.compile.impl.util.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 theCompilerIssues
.CompilerIssue[]
getCauses()
Obtains theCompilerIssue
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.
-
-
-
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
-
addLoadTypeIssue
public void addLoadTypeIssue(Node node, CompilerIssues issues)
Convenience method to add this as an issue to theCompilerIssues
.- Parameters:
node
-Node
handling this.issues
-CompilerIssues
.
-
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.
-
getCauses
public CompilerIssue[] getCauses()
Obtains theCompilerIssue
instances indicating cause of not loading type.- Returns:
CompilerIssue
instances indicating cause of not loading type.
-
-