ErrorMessage.fromException constructor

ErrorMessage.fromException(
  1. Exception e,
  2. StackTrace? s, {
  3. String? source,
  4. dynamic details,
})

Implementation

ErrorMessage.fromException(
  Exception e,
  StackTrace? s, {
  String? source,
  dynamic details,
}) : this(
        source: source,
        message: e.toString(),
        details: details ?? e,
        stackTrace: s,
      );