java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.bzdev.lang.MethodNotPresentException
- All Implemented Interfaces:
Serializable
Thrown when a dynamic method invocation failed to find a method
implementing the dynamic method.
One should either define a method whose signature matches that of
the dynamic method (in which case this exception can never be thrown)
or catch this exception and handle it explicitly in the method tagged
with the @DynamicMethod annotation, unless the dynamic method's
'throws' clause contains java.lang.MethodNotPresentException.
Note: a programming error that can cause this exception to be
thrown is the failure to call a local helper's
register()
method when a class associated with that
local helper is loaded. Calling the register()
method
is required because Java does not load classes until needed.
Normally instances of this method should not be created by users of this class library: this exception is thrown by code generated by an annotation processor.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MethodNotPresentException
public MethodNotPresentException()Constructor.
-