some fixes
This commit is contained in:
parent
6e21cff0a7
commit
72fdb68e82
|
@ -66,6 +66,11 @@ enum HTTPType { GET, POST, PUT, DELETE }
|
|||
|
||||
enum LoginState { logged, loggedOut }
|
||||
|
||||
class GenericException implements Exception {
|
||||
final dynamic content;
|
||||
GenericException(this.content);
|
||||
}
|
||||
|
||||
/// Represents a Matrix client to communicate with a
|
||||
/// [Matrix](https://matrix.org) homeserver and is the entry point for this
|
||||
/// SDK.
|
||||
|
@ -1167,7 +1172,7 @@ class Client {
|
|||
print(s);
|
||||
onOlmError.add(
|
||||
ToDeviceEventDecryptionError(
|
||||
exception: e,
|
||||
exception: (e is Exception) ? e : GenericException(e),
|
||||
stackTrace: s,
|
||||
toDeviceEvent: toDeviceEvent,
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue