SecurityError constructor

SecurityError(
  1. String uuid,
  2. String originalMessage
)

Create a new instance.

originalMessage is the original message of the error thrown by the browser.

Implementation

SecurityError(this.uuid, final String originalMessage) {
  final match = _urlReg.firstMatch(originalMessage);
  if (match != null) {
    final parsed = Uri.tryParse(originalMessage, match.start, match.end);
    url = parsed?.toString();
  }
}