Class InvalidRulesException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
software.amazon.smithy.rulesengine.language.error.InvalidRulesException
- All Implemented Interfaces:
Serializable
,FromSourceLocation
Exception thrown when a rule-set is invalid.
- See Also:
-
Constructor Summary
ConstructorDescriptionInvalidRulesException
(String message, FromSourceLocation location) Constructs a new invalid rule exception with the given message and source location. -
Method Summary
Modifier and TypeMethodDescriptionGets the source location of a value.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidRulesException
Constructs a new invalid rule exception with the given message and source location.- Parameters:
message
- the detail message.location
- the location of the invalid rule.
-
-
Method Details
-
getSourceLocation
Description copied from interface:FromSourceLocation
Gets the source location of a value.- Specified by:
getSourceLocation
in interfaceFromSourceLocation
- Returns:
- Returns the source location of the value.
-