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
-
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(RuleValueVisitor<T> visitor) Invoke theRuleValueVisitor
functions for this Rule.getError()
Gets the error expression to return when reaching this rule.toString()
protected Type
typecheckValue
(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:Rule
Invoke theRuleValueVisitor
functions for this Rule. -
typecheckValue
- Specified by:
typecheckValue
in classRule
-
toString
-