RuntimeD4rtException constructor

RuntimeD4rtException(
  1. String message, {
  2. Object? originalException,
  3. StackTrace? originalStackTrace,
})

Creates a new runtime error with the given message. When originalException is supplied, the wrapped native exception stays catchable by type; supply originalStackTrace from the same catch clause so the trace survives the wrapping too.

Implementation

RuntimeD4rtException(
  super.message, {
  this.originalException,
  this.originalStackTrace,
});