Package randoop.sequence
Class SequenceExceptionError
java.lang.Object
java.lang.Throwable
java.lang.Error
randoop.sequence.SequenceExceptionError
- All Implemented Interfaces:
Serializable
Exception representing occurrence of a "flaky" test sequence where an exception was thrown by a
statement other than the last of the sequence. Occurs when a statement in an input sequence, that
previously terminated normally, throws an exception. Includes information needed to report the
error.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate Throwable
The exception thrown by the sequence.private int
The position of the statement that threw the exception.private static final long
ID for serialization.private ExecutableSequence
The test sequence. -
Constructor Summary
ConstructorDescriptionSequenceExceptionError
(ExecutableSequence testSequence, int position, Throwable exception) Create an exception for the exception thrown by the statement at the given position in the test sequence. -
Method Summary
Modifier and TypeMethodDescriptiongetError()
Returns the thrown exception.Returns the string representation of the test sequence.Returns the string representation of the statement that threw the exception.Returns the input sequence containing the statement that threw the exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDID for serialization.- See Also:
-
e
The exception thrown by the sequence. -
testSequence
The test sequence. -
position
private int positionThe position of the statement that threw the exception.
-
-
Constructor Details
-
SequenceExceptionError
Create an exception for the exception thrown by the statement at the given position in the test sequence.- Parameters:
testSequence
- the test sequenceposition
- the position of the statement that threw the exceptionexception
- the exception
-
-
Method Details
-
getError
Returns the thrown exception.- Returns:
- the exception thrown by statement in sequence
-
getStatement
Returns the string representation of the statement that threw the exception.- Returns:
- the string representation of the statement
-
getSequence
Returns the string representation of the test sequence.- Returns:
- the full test sequence as a string
-
getSubsequence
Returns the input sequence containing the statement that threw the exception.- Returns:
- the input sequence from which exception was thrown
-