Package jetbrains.mps.generator.runtime
Class GenerationException
- java.lang.Object
 - 
- java.lang.Throwable
 - 
- java.lang.Exception
 - 
- jetbrains.mps.generator.runtime.GenerationException
 
 
 
 
- 
- All Implemented Interfaces:
 Serializable
- Direct Known Subclasses:
 AbandonRuleInputException,DismissTopMappingRuleException,GenerationCanceledException,GenerationFailureException
public abstract class GenerationException extends Exception
Propagates exceptional state of the transformation process. Not necessarily indicates a failure and doesn't manifest stop of generation process. UseGenerationFailureExceptionwith subclasses to report failures. Evgeny Gryaznov, 10/22/10- See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedGenerationException()protectedGenerationException(String s)protectedGenerationException(String s, Throwable throwable)protectedGenerationException(Throwable throwable) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TemplateContextgetTemplateContext()SNodeReferencegetTemplateModelLocation()voidsetTemplateContext(TemplateContext context)Record context of template evaluation at the time exception is thrown.voidsetTemplateModelLocation(SNodeReference location)- 
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
 - 
 
 - 
 
- 
- 
Method Detail
- 
setTemplateContext
public void setTemplateContext(@Nullable TemplateContext context)
Record context of template evaluation at the time exception is thrown. It's an optional information to help better locate origin of an issue.- Since:
 - 3.3
 
 
- 
getTemplateContext
@Nullable public TemplateContext getTemplateContext()
- Returns:
 - template context at the time exception was thrown, if any
 - Since:
 - 3.3
 
 
- 
setTemplateModelLocation
public void setTemplateModelLocation(@Nullable SNodeReference location)
- Parameters:
 location- identifies origin of the exception in template model- Since:
 - 3.3
 
 
- 
getTemplateModelLocation
@Nullable public SNodeReference getTemplateModelLocation()
- Returns:
 - where the exception originates from
 - Since:
 - 3.3
 
 
 - 
 
 -