Package io.quarkus.qute
Class TemplateException.Builder
java.lang.Object
io.quarkus.qute.TemplateException.Builder
- Enclosing class:
- TemplateException
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe argument can be used in a message template set viamessage(String).Every empty expression{}in the message template is a placeholder that is replaced with an index-based array accessor{data[n]}wherenis the index of the placeholder.build()The message can be a qute template.origin(TemplateNode.Origin origin) If set then the origin key can be used in the message template.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
message
The message can be a qute template.- Parameters:
message-- Returns:
- self
- See Also:
-
cause
-
origin
If set then the origin key can be used in the message template. For exampleSome error {origin}will be rendered asSomer error template [foo.html] line 1.- Parameters:
origin-- Returns:
- self
-
code
-
argument
The argument can be used in a message template set viamessage(String).- Parameters:
key-value-- Returns:
- self
-
arguments
-
arguments
Every empty expression{}in the message template is a placeholder that is replaced with an index-based array accessor{data[n]}wherenis the index of the placeholder. The first placeholder is replace with{data[0]}, the second with{data[1]}, and so on. For example,"Hello {}!"becomesHello {data[0]}!.- Parameters:
arguments-- Returns:
- self
-
build
-