All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.spun.util.velocity.VelocityParsingError Maven / Gradle / Ivy

There is a newer version: 24.9.0
Show newest version
package com.spun.util.velocity;

import org.apache.velocity.util.introspection.Info;

public class VelocityParsingError extends Error
{
  private static final long serialVersionUID = 1L;
  private String            message;
  private transient Info    info;
  public VelocityParsingError(String message, Info info)
  {
    this.message = message;
    this.info = info;
  }
  public String getMessage()
  {
    return message + "  " + getInfoText(info);
  }
  public static String getInfoText(Info i)
  {
    return " at [" + i.getLine() + "," + i.getColumn() + "]" + " in template " + i.getTemplateName();
  }
  public Info getInfo()
  {
    return info;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy