getError

abstract fun getError(): Optional<Throwable>(source)

Return

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