Class ExceptionResult


  • public class ExceptionResult
    extends CallResult
    The result returned if a call resulted in an exception.
    Author:
    Rene Schneider - initial API and implementation
    • Constructor Detail

      • ExceptionResult

        public ExceptionResult​(java.lang.Throwable anException,
                               java.util.List<CallResult.UpdatedVariable> someVariablesToUpdate,
                               FixtureWrapper<?> aFixtureInstance,
                               java.lang.String aFixtureMethod,
                               java.lang.Long anExecutionTime,
                               java.util.List<ExtendedResultFixture.ExtendedResult> someExtendedResults)
        Creates a new instance.
        Parameters:
        anException - the exception that was thrown
        someVariablesToUpdate - the variables that were to be updated
        aFixtureInstance - The fixture instance (wrapped) - may be null if no fixtures are called in the current phase (for example during the dry run).
        aFixtureMethod - the method that was executed
        anExecutionTime - the time it took to execute the call
        someExtendedResults - any extended results returned by the fixture
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getException

        public java.lang.Throwable getException()