Class GenerationException

    • Constructor Detail

      • GenerationException

        protected GenerationException()
      • GenerationException

        protected GenerationException​(String s)
      • GenerationException

        protected GenerationException​(String s,
                                      Throwable throwable)
      • GenerationException

        protected GenerationException​(Throwable throwable)
    • Method Detail

      • setTemplateContext

        public void setTemplateContext​(@Nullable
                                       TemplateContext context)
        Record context of template evaluation at the time exception is thrown. It's an optional information to help better locate origin of an issue.
        Since:
        3.3
      • getTemplateContext

        @Nullable
        public TemplateContext getTemplateContext()
        Returns:
        template context at the time exception was thrown, if any
        Since:
        3.3
      • setTemplateModelLocation

        public void setTemplateModelLocation​(@Nullable
                                             SNodeReference location)
        Parameters:
        location - identifies origin of the exception in template model
        Since:
        3.3
      • getTemplateModelLocation

        @Nullable
        public SNodeReference getTemplateModelLocation()
        Returns:
        where the exception originates from
        Since:
        3.3