throwException static method

void throwException(
  1. Exception exception,
  2. 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));
}