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
ConstructorDescriptionShouldNotBeGetAsMethodException(TemplateModel actualValue, String hint)
Same asShouldNotBeGetAsMethodException(freemarker.template.TemplateModel,java.lang.String,java.lang.Throwable)
, withnull
cause 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)
, withnull
cause 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;null
if you just want the plainNonMethodException
error message.cause
- Can benull
.
-
-
Method Details
-
getActualValue
The actual value we got instead of a method; notnull
. -
getHint
Additional hint for the user; maybenull
.
-