Class InvalidRulesException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- software.amazon.smithy.rulesengine.language.error.InvalidRulesException
-
- All Implemented Interfaces:
java.io.Serializable
,FromSourceLocation
public final class InvalidRulesException extends java.lang.RuntimeException implements FromSourceLocation
Exception thrown when a rule-set is invalid.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidRulesException(java.lang.String message, FromSourceLocation location)
Constructs a new invalid rule exception with the given message and source location.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceLocation
getSourceLocation()
Gets the source location of a value.
-
-
-
Constructor Detail
-
InvalidRulesException
public InvalidRulesException(java.lang.String message, FromSourceLocation location)
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 Detail
-
getSourceLocation
public SourceLocation 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.
-
-