A ServerFailure exception is always converted into a StopExecution exception, whereas a TestFailure exception is only converted if --continueOnFailure wasn't specified.
A ServerFailure exception is always converted into a StopExecution exception, whereas a TestFailure exception is only converted if --continueOnFailure wasn't specified.