throwException static method
- Exception exception,
- StackTrace stackTrace
Collects an exception
and associated stackTrace
triggered
asynchronously during simulation to be thrown synchronously by run.
Calling this function will end the simulation after this tick completes.
Implementation
static void throwException(Exception exception, StackTrace stackTrace) {
_simExceptions.add(_SimulatorException(exception, stackTrace));
}