
com.hubspot.jinjava.el.ext.DeferredParsingException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jinjava Show documentation
Show all versions of jinjava Show documentation
Jinja templating engine implemented in Java
package com.hubspot.jinjava.el.ext;
import com.hubspot.jinjava.interpret.DeferredValueException;
public class DeferredParsingException extends DeferredValueException {
private final String deferredEvalResult;
private final Object sourceNode;
public DeferredParsingException(String message) {
super(message);
this.deferredEvalResult = message;
this.sourceNode = null;
}
public DeferredParsingException(Object sourceNode, String deferredEvalResult) {
super(
String.format(
"%s could not be parsed more than: %s",
sourceNode.getClass(),
deferredEvalResult
)
);
this.deferredEvalResult = deferredEvalResult;
this.sourceNode = sourceNode;
}
public String getDeferredEvalResult() {
return deferredEvalResult;
}
public Object getSourceNode() {
return sourceNode;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy