Package freemarker.template
Class MethodCallAwareTemplateHashModel.ShouldNotBeGetAsMethodException
java.lang.Object
java.lang.Throwable
java.lang.Exception
freemarker.template.MethodCallAwareTemplateHashModel.ShouldNotBeGetAsMethodException
- All Implemented Interfaces:
Serializable
- Enclosing interface:
- MethodCallAwareTemplateHashModel
public static final class MethodCallAwareTemplateHashModel.ShouldNotBeGetAsMethodException
extends Exception
Thrown by
MethodCallAwareTemplateHashModel.getBeforeMethodCall(String); see there.- Since:
- 2.3.33
- See Also:
- Serialized Form
-
Constructor Summary
ConstructorsConstructorDescriptionShouldNotBeGetAsMethodException(TemplateModel actualValue, String hint)Same asShouldNotBeGetAsMethodException(freemarker.template.TemplateModel,java.lang.String,java.lang.Throwable), withnullcause exception argument.ShouldNotBeGetAsMethodException(TemplateModel actualValue, String hint, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionThe actual value we got instead of a method; notnull.getHint()Additional hint for the user; maybenull.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ShouldNotBeGetAsMethodException
Same asShouldNotBeGetAsMethodException(freemarker.template.TemplateModel,java.lang.String,java.lang.Throwable), withnullcause exception argument. -
ShouldNotBeGetAsMethodException
- Parameters:
actualValue- The actual value we got instead of a method; can't benull!hint- Hint for the user, that's added to the error message;nullif you just want the plainNonMethodExceptionerror message.cause- Can benull.
-
-
Method Details
-
getActualValue
The actual value we got instead of a method; notnull. -
getHint
Additional hint for the user; maybenull.
-