Class TemplateProcessingException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
TemplateInputException, TemplateOutputException

public class TemplateProcessingException extends TemplateEngineException

General exception for errors raised during the process of a template.

Since:
1.0
Author:
Daniel Fernández, Guven Demir
See Also:
  • Constructor Details

    • TemplateProcessingException

      public TemplateProcessingException(String message)
    • TemplateProcessingException

      public TemplateProcessingException(String message, Throwable cause)
    • TemplateProcessingException

      public TemplateProcessingException(String message, String templateName, Throwable cause)
    • TemplateProcessingException

      public TemplateProcessingException(String message, String templateName, int line, int col)
      Parameters:
      message - The message of the exception
      templateName - The name of the template for which the exception is thrown
      line - line position of the event that caused the exception
      col - columns position of the event that caused the exception
      Since:
      3.0.0
    • TemplateProcessingException

      public TemplateProcessingException(String message, String templateName, int line, int col, Throwable cause)
      Parameters:
      message - The message of the exception
      templateName - The name of the template for which the exception is thrown
      line - line position of the event that caused the exception
      col - columns position of the event that caused the exception
      cause - cause to be nested inside the exception
      Since:
      3.0.0
  • Method Details

    • getTemplateName

      public String getTemplateName()
    • hasTemplateName

      public boolean hasTemplateName()
    • getLine

      public Integer getLine()
    • getCol

      public Integer getCol()
    • hasLineAndCol

      public boolean hasLineAndCol()
    • setTemplateName

      public void setTemplateName(String templateName)
    • setLineAndCol

      public void setLineAndCol(int line, int col)
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable