public class ImproperNodeTypeException extends KendalException
KendalHandler to signal misuse of AstHelper methods.
It means that a node that was passed to helper method represents improper type for given context.
Exception message is then printed out as a compilation error.
Example: when node representing JCTree.JCMethodDecl is passed as argument for method
AstHelper#addElementToClass(Node, Node, AstHelper.Mode)| Constructor and Description |
|---|
ImproperNodeTypeException() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringCopyright © 2019. All rights reserved.