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 Details

    • exception

      private final Throwable exception
  • Constructor Details

    • ExceptionalExecution

      public ExceptionalExecution(Throwable exception, long executionTime)
      Parameters:
      exception - the exception that was thrown
      executionTime - the execution time, in nanoseconds
  • Method Details

    • getException

      public Throwable getException()
      Return the exception.
      Returns:
      the exception
    • toString

      public String toString()
      Warning: this method calls toString() of code under test, which may have arbitrary behavior. We use this method in randoop.test.SequenceTests.
      Overrides:
      toString in class Object