Package randoop
Class ExceptionalExecution
- java.lang.Object
-
- randoop.ExecutionOutcome
-
- randoop.ExceptionalExecution
-
public class ExceptionalExecution extends ExecutionOutcome
Means that the execution of a statement threw an exception.
-
-
Field Summary
Fields Modifier and Type Field Description private Throwable
exception
-
Fields inherited from class randoop.ExecutionOutcome
output
-
-
Constructor Summary
Constructors Constructor Description ExceptionalExecution(Throwable exception, long executionTimeNanos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
getException()
Return the exception.String
toString()
Warning: this method calls toString() of code under test, which may have arbitrary behavior.-
Methods inherited from class randoop.ExecutionOutcome
get_output, getExecutionTimeNanos, set_output
-
-
-
-
Field Detail
-
exception
private final Throwable exception
-
-
Constructor Detail
-
ExceptionalExecution
public ExceptionalExecution(Throwable exception, long executionTimeNanos)
- Parameters:
exception
- the exception that was thrownexecutionTimeNanos
- the execution time, in nanoseconds
-
-
Method Detail
-
getException
public Throwable getException()
Return the exception.- Returns:
- the exception
-
-