Skip to content

Commit 58b956f

Browse files
authored
[firebase_dynamic_links] Change the OnLinkError object to be a real exception
2 parents a8f1fe8 + df878bf commit 58b956f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

packages/firebase_dynamic_links/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.5.0+2
2+
3+
* Change the OnLinkError object to be a real exception.
4+
15
## 0.5.0+1
26

37
* Update documentation to reflect new repository location.

packages/firebase_dynamic_links/lib/src/firebase_dynamic_links.dart

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,8 @@ class PendingDynamicLinkDataIOS {
144144
final String minimumVersion;
145145
}
146146

147-
class OnLinkErrorException {
148-
OnLinkErrorException._(this.code, this.message, this.details);
149-
150-
final String code;
151-
152-
final String message;
153-
154-
final dynamic details;
147+
/// This object is returned by the handler when an error occurs.
148+
class OnLinkErrorException extends PlatformException {
149+
OnLinkErrorException._(String code, String message, dynamic details)
150+
: super(code: code, message: message, details: details);
155151
}

packages/firebase_dynamic_links/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: firebase_dynamic_links
22
description: Flutter plugin for Google Dynamic Links for Firebase, an app solution for creating
33
and handling links across multiple platforms.
4-
version: 0.5.0+1
4+
version: 0.5.0+2
55

66
author: Flutter Team <[email protected]>
77
homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_dynamic_links

0 commit comments

Comments
 (0)