CaughtException constructor

CaughtException(
  1. Object exception,
  2. StackTrace stackTrace
)

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

Implementation

CaughtException(Object exception, StackTrace stackTrace)
    : this.withMessage(null, exception, stackTrace);