Skip to content

Commit bba375a

Browse files
Update realtime_mixin.dart.twig
1 parent 70ea101 commit bba375a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

templates/flutter/lib/src/realtime_mixin.dart.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,19 +100,19 @@ mixin RealtimeMixin {
100100
}
101101
});
102102
} catch (e) {
103-
if (e is AppwriteException) {
103+
if (e is {{spec.title | caseUcfirst}}Exception) {
104104
rethrow;
105105
}
106106
if (e is WebSocketChannelException) {
107-
throw AppwriteException(e.message);
107+
throw {{spec.title | caseUcfirst}}Exception(e.message);
108108
}
109-
throw AppwriteException(e.toString());
109+
throw {{spec.title | caseUcfirst}}Exception(e.toString());
110110
}
111111
}
112112

113113
Uri _prepareUri() {
114114
if (client.endPointRealtime == null) {
115-
throw AppwriteException(
115+
throw {{spec.title | caseUcfirst}}Exception(
116116
"Please set endPointRealtime to connect to realtime server");
117117
}
118118
var uri = Uri.parse(client.endPointRealtime!);

0 commit comments

Comments
 (0)