java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.civl.sarl.IF.SARLException
dev.civl.sarl.IF.SARLBoundException
- All Implemented Interfaces:
Serializable
An exception that occurs when an index is out of bounds. Typically, this
means an array index, though this class uses only a general notion of an
index being out of bounds.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe symbolic expression into which the index points (typically, an array)The offending indexThe kind of operation that resulted in the exception, e.g., "an array write operation" or "an array read operation"The lowest value that an index should take; can benull, representing "unknown"The greatest value that an index should take; can benull, representing "unknown" -
Constructor Summary
ConstructorsConstructorDescriptionSARLBoundException(SymbolicExpression expr, NumericExpression index, NumericExpression lowerBound, NumericExpression upperBound, String location) Constructs new out-of-bounds exception with a message formed from the given parameters. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
expr
The symbolic expression into which the index points (typically, an array) -
index
The offending index -
lowerBound
The lowest value that an index should take; can benull, representing "unknown" -
upperBound
The greatest value that an index should take; can benull, representing "unknown" -
location
The kind of operation that resulted in the exception, e.g., "an array write operation" or "an array read operation"
-
-
Constructor Details
-
SARLBoundException
public SARLBoundException(SymbolicExpression expr, NumericExpression index, NumericExpression lowerBound, NumericExpression upperBound, String location) Constructs new out-of-bounds exception with a message formed from the given parameters.- Parameters:
expr- the symbolic expression into which the index points (typically, an array)index- the offending indexlowerBound- the lowest value that an index should take; can benull, representing "unknown"upperBound- the greatest value that an index should take; can benull, representing "unknown"location- the kind of operation that resulted in the exception, e.g., "an array write operation" or "an array read operation"
-