Class ErrorRule
java.lang.Object
software.amazon.smithy.rulesengine.language.syntax.rule.Rule
software.amazon.smithy.rulesengine.language.syntax.rule.ErrorRule
- All Implemented Interfaces:
 FromSourceLocation,ToNode,TypeCheck
A rule-set rule that is used to indicate an error in evaluation.
- 
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.smithy.rulesengine.language.syntax.rule.Rule
Rule.Builder - 
Field Summary
 - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescription<T> Taccept(RuleValueVisitor<T> visitor) Invoke theRuleValueVisitorfunctions for this Rule.getError()Gets the error expression to return when reaching this rule.toString()protected TypetypecheckValue(Scope<Type> scope) Methods inherited from class software.amazon.smithy.rulesengine.language.syntax.rule.Rule
builder, builder, equals, fromNode, getConditions, getDocumentation, getSourceLocation, hashCode, toNode, typeCheck 
- 
Constructor Details
- 
ErrorRule
 
 - 
 - 
Method Details
- 
getError
Gets the error expression to return when reaching this rule.- Returns:
 - the error expression.
 
 - 
accept
Description copied from class:RuleInvoke theRuleValueVisitorfunctions for this Rule. - 
typecheckValue
- Specified by:
 typecheckValuein classRule
 - 
toString
 
 -