joinExceptionMainAndCause property

String Function(Locale? locale, String? mainMsg, String? causeMsg) joinExceptionMainAndCause
getter/setter pair

Return the string that join the main message and the reason message. You can change this variable to inject another way to join them.

Implementation

static var joinExceptionMainAndCause = (
  Locale? locale,
  String? mainMsg,
  String? causeMsg,
) =>
    "$mainMsg\n\n${_getReasonFromLocale(locale) ?? "Reason"}: $causeMsg";