Class InvalidReferenceException

All Implemented Interfaces:
Serializable

public class InvalidReferenceException extends TemplateException
A subclass of TemplateException that says that an FTL expression has evaluated to null or it refers to something that doesn't exist. At least in FreeMarker 2.3.x these two cases aren't distinguished.
See Also:
Serialized Form
  • Constructor Details

    • InvalidReferenceException

      public InvalidReferenceException(Environment env)
      Creates and invalid reference exception that contains no information about what was missing or null. As such, try to avoid this constructor.
    • InvalidReferenceException

      public InvalidReferenceException(String description, Environment env)
      Creates and invalid reference exception that contains no programmatically extractable information about the blamed expression. As such, try to avoid this constructor, unless need to raise this expression from outside the FreeMarker core.