getError

abstract fun getError(): Optional<Throwable>

Return

an Optional containing the exception that made the simulation fail, or empty in case the simulation is ongoing or has terminated successfully.