causedBy method

E causedBy(
  1. Object chainedException,
  2. StackTrace stackTrace
)

Marks this exception as being caused by chainedException.

Implementation

E causedBy(Object chainedException, StackTrace stackTrace) =>
    _wasCausedBy(this, chainedException, stackTrace);