fun setFailureException(exception: Throwable!): Unit
Set the exception to be used when a failure is triggered.
It is a best practice to remove the stack trace from exception since it can misleadingly point to code unrelated to this class.
exception