CaughtException.withMessage constructor Null safety

CaughtException.withMessage(
  1. String? message,
  2. Object exception,
  3. StackTrace stackTrace
)

Initialize a newly created caught exception to have the given exception, stackTrace, and message.

Implementation

CaughtException.withMessage(this.message, this.exception, this.stackTrace);