alchemist-interfaces / it.unibo.alchemist.core.interfaces / Simulation / getError

getError

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

Return
Optional<Throwable!>!: an Optional containing the exception that made the simulation fail, or Optional#empty() in case the simulation is ongoing or has terminated successfully.