public class SoySyntaxExceptionUtils extends Object
Important: Do not use outside of Soy code (treat as superpackage-private).
| Modifier and Type | Method and Description |
|---|---|
static SoySyntaxException |
associateNode(SoySyntaxException sse,
SoyNode node)
Adds meta info to an existing SoySyntaxException.
|
static SoySyntaxException |
createCausedWithNode(String message,
Throwable cause,
SoyNode node)
Creates a SoySyntaxException, with meta info filled in based on the given Soy node.
|
static SoySyntaxException |
createWithNode(String message,
SoyNode node)
Creates a SoySyntaxException, with meta info filled in based on the given Soy node.
|
public static SoySyntaxException createWithNode(String message, SoyNode node)
Important: Do not use outside of Soy code (treat as superpackage-private).
message - The error message.node - The node from which to derive the exception meta info.public static SoySyntaxException createCausedWithNode(@Nullable String message, Throwable cause, SoyNode node)
Important: Do not use outside of Soy code (treat as superpackage-private).
message - The error message, or null to use the message from the cause.cause - The cause of this exception.node - The node from which to derive the exception meta info.public static SoySyntaxException associateNode(SoySyntaxException sse, SoyNode node)
Important: Do not use outside of Soy code (treat as superpackage-private).
sse - The SoySyntaxException to add meta info to.node - The node from which to derive the exception meta info.