File tree 2 files changed +13
-2
lines changed
PowerSyncKotlin/src/appleMain/kotlin/com/powersync
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 6
6
* Added ` triggerImmediately ` to ` onChange ` method.
7
7
* Report real-time progress information about downloads through ` SyncStatus.downloadProgress ` .
8
8
* Compose: Add ` composeState() ` extension method on ` SyncStatus ` .
9
+ * [ Internal] Added helper method for Swift ` PowerSyncException ` throwing.
9
10
10
11
## 1.0.0-BETA32
11
12
Original file line number Diff line number Diff line change 1
- @file:Suppress(" ktlint:standard:no-empty-file" )
2
-
3
1
// This is required to build the iOS framework
4
2
5
3
package com.powersync
4
+
5
+ /* *
6
+ * Helper class designed to bridge SKIEE methods and allow them to throw
7
+ * `PowerSyncException`. This is necessary because these exceptions cannot
8
+ * be thrown directly in Swift.
9
+ *
10
+ * The class provides a mechanism to handle exceptions in a way that is
11
+ * compatible with the Swift environment, ensuring proper error propagation
12
+ * and handling.
13
+ */
14
+ @Throws(PowerSyncException ::class )
15
+ public fun throwPowerSyncException (exception : PowerSyncException ): Unit = throw exception
You can’t perform that action at this time.
0 commit comments