public class QueryProcessingException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
patternDescription |
protected java.lang.String |
shortMessage |
protected java.lang.String[] |
templateContext |
protected java.lang.String |
templateMessage |
Constructor and Description |
---|
QueryProcessingException(java.lang.String message,
java.lang.String[] context,
java.lang.String shortMessage,
java.lang.Object patternDescription) |
QueryProcessingException(java.lang.String message,
java.lang.String[] context,
java.lang.String shortMessage,
java.lang.Object patternDescription,
java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
protected static java.lang.String |
bind(java.lang.String message,
java.lang.String[] context)
Binding the '{n}' (n = 1..N) strings to contextual conditions in 'context'
|
java.lang.Object |
getPatternDescription() |
java.lang.String |
getShortMessage() |
java.lang.String[] |
getTemplateContext() |
java.lang.String |
getTemplateMessage() |
void |
setPatternDescription(java.lang.Object patternDescription) |
protected java.lang.Object patternDescription
protected java.lang.String templateMessage
protected java.lang.String[] templateContext
protected java.lang.String shortMessage
public QueryProcessingException(java.lang.String message, java.lang.String[] context, java.lang.String shortMessage, java.lang.Object patternDescription)
message
- The template of the exception messagecontext
- The data elements to be used to instantiate the template. Can be null if no context parameter is
definedpatternDescription
- the PatternDescription where the exception occurredpublic QueryProcessingException(java.lang.String message, java.lang.String[] context, java.lang.String shortMessage, java.lang.Object patternDescription, java.lang.Throwable cause)
message
- The template of the exception messagecontext
- The data elements to be used to instantiate the template. Can be null if no context parameter is
definedpatternDescription
- the PatternDescription where the exception occurredprotected static java.lang.String bind(java.lang.String message, java.lang.String[] context)
context
- : array of context-sensitive Stringspublic java.lang.Object getPatternDescription()
public java.lang.String getShortMessage()
public java.lang.String[] getTemplateContext()
public java.lang.String getTemplateMessage()
public void setPatternDescription(java.lang.Object patternDescription)