ParseException.fromThrow constructor

ParseException.fromThrow(
  1. dynamic e
)

Construct a new ParseException with an external cause.

Implementation

ParseException.fromThrow(dynamic e)
    : code = otherCause,
      message = (e is FormatException)
          ? e.message
          : e.toString().replaceFirst('Exception: ', ''),
      data = e;