com.google.template.soy.tofu
Class SoyTofuException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.google.template.soy.tofu.SoyTofuException
- All Implemented Interfaces:
- Serializable
public class SoyTofuException
- extends RuntimeException
Exception thrown when an error occurs during template rendering.
- See Also:
- Serialized Form
SoyTofuException
public SoyTofuException(String message)
- Parameters:
message - A detailed description of the error.
SoyTofuException
public SoyTofuException(String message,
Throwable cause)
- Parameters:
message - A detailed description of the error.cause - The underlying error.
SoyTofuException
public SoyTofuException(com.google.template.soy.sharedpasses.render.RenderException re)
- Creates an instance by copying a RenderException.
- Parameters:
re - The RenderException to copy.
getTemplateName
@Nullable
public String getTemplateName()
- The name of the template in which the problem occurred or
null if not known.
setTemplateName
public SoyTofuException setTemplateName(String templateName)
- Sets the template name for this error.
- Parameters:
templateName - The name of the template containing this error.
- Returns:
- This same instance.
getMessage
public String getMessage()
- Overrides:
getMessage in class Throwable