Class QueryProcessingException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
QueryInitializationException

public class QueryProcessingException extends InterpreterRuntimeException
Since:
0.9
See Also:
  • Constructor Details

    • QueryProcessingException

      public QueryProcessingException(String message, Object patternDescription)
      Parameters:
      message - The template of the exception message
      patternDescription - the PatternDescription where the exception occurred
      context - The data elements to be used to instantiate the template. Can be null if no context parameter is defined
      Since:
      2.0
    • QueryProcessingException

      public QueryProcessingException(String message, String[] context, String shortMessage, Object patternDescription)
      Parameters:
      message - The template of the exception message
      context - The data elements to be used to instantiate the template. Can be null if no context parameter is defined
      patternDescription - the PatternDescription where the exception occurred
    • QueryProcessingException

      public QueryProcessingException(String message, String[] context, String shortMessage, Object patternDescription, Throwable cause)
      Parameters:
      message - The template of the exception message
      context - The data elements to be used to instantiate the template. Can be null if no context parameter is defined
      patternDescription - the PatternDescription where the exception occurred
  • Method Details

    • bind

      protected static String bind(String message, String[] context)
      Binding the '{n}' (n = 1..N) strings to contextual conditions in 'context'
      Parameters:
      context - : array of context-sensitive Strings
    • getPatternDescription

      public Object getPatternDescription()
    • getShortMessage

      public String getShortMessage()
    • setPatternDescription

      public void setPatternDescription(Object patternDescription)