Package jetbrains.mps.generator.impl
Class TemplateQueryException
- java.lang.Object
 - 
- java.lang.Throwable
 - 
- java.lang.Exception
 - 
- jetbrains.mps.generator.runtime.GenerationException
 - 
- jetbrains.mps.generator.impl.GenerationFailureException
 - 
- jetbrains.mps.generator.impl.TemplateQueryException
 
 
 
 
 
 
- 
- All Implemented Interfaces:
 Serializable
public class TemplateQueryException extends GenerationFailureException
Serves as designated indicator of an error in a query code, to tell errors of MPS from that of language designer. It's not intended to be instantiated by client code, it's MPS own reaction to an exception that originates in user's code. It has both descriptive message and nested exception.- Since:
 - 3.5
 - See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description TemplateQueryException(String message, Throwable cause) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TemplateQueryContextgetQueryContext()voidsetQueryContext(TemplateQueryContext queryContext)Updatestemplate model locationfrom the context, if not already set.- 
Methods inherited from class jetbrains.mps.generator.runtime.GenerationException
getTemplateContext, getTemplateModelLocation, setTemplateContext, setTemplateModelLocation 
- 
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
 - 
 
 - 
 
- 
- 
Method Detail
- 
setQueryContext
public void setQueryContext(@Nullable TemplateQueryContext queryContext)
Updatestemplate model locationfrom the context, if not already set.- Parameters:
 queryContext- optional extra information about failed query
 
- 
getQueryContext
@Nullable public TemplateQueryContext getQueryContext()
- Returns:
 - extra information about failed query, optional
 
 
 - 
 
 -