Package jetbrains.mps.errors
Interface IErrorReporter
- 
- All Known Implementing Classes:
 AbstractErrorReporter,EquationErrorReporterNew,NullErrorReporter,SimpleErrorReporter
public interface IErrorReporterThis interface is poorly designed and its use is discouraged. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddIntentionProvider(QuickFixProvider intentionProvider)voidadditionalRule(SNodeReference rulePointer)List<SNodeReference>getAdditionalRulesIds()MessageTargetgetErrorTarget()List<QuickFixProvider>getIntentionProviders()MessageStatusgetMessageStatus()SNodeReferencegetRuleNode()SNodegetSNode()There's no guarantee this method returns a valid node if used in a model read different from the one this reporter originates from.StringreportError() 
 - 
 
- 
- 
Method Detail
- 
reportError
String reportError()
 
- 
getRuleNode
@Nullable SNodeReference getRuleNode()
 
- 
additionalRule
void additionalRule(@NotNull SNodeReference rulePointer)
- Parameters:
 rulePointer- pointer to a rule that adds extra meaning to reported error- Since:
 - 2017.2
 
 
- 
getAdditionalRulesIds
List<SNodeReference> getAdditionalRulesIds()
 
- 
getMessageStatus
MessageStatus getMessageStatus()
 
- 
getIntentionProviders
List<QuickFixProvider> getIntentionProviders()
 
- 
addIntentionProvider
void addIntentionProvider(QuickFixProvider intentionProvider)
 
- 
getErrorTarget
MessageTarget getErrorTarget()
 
- 
getSNode
@NotNull SNode getSNode()
There's no guarantee this method returns a valid node if used in a model read different from the one this reporter originates from. IOW, you are safe to access this node provided you're in the same read. If you need to pass node value to another read, please useSNodeReferenceinstead. 
 - 
 
 -