File tree 2 files changed +14
-0
lines changed
core/src/commonMain/kotlin/com/powersync
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
* Fixed ` CrudBatch ` ` hasMore ` always returning false.
6
6
* Added ` triggerImmediately ` to ` onChange ` method.
7
+ * [ Internal] Added helper method for Swift ` PowerSyncException ` throwing.
7
8
8
9
## 1.0.0-BETA32
9
10
Original file line number Diff line number Diff line change @@ -4,3 +4,16 @@ public class PowerSyncException(
4
4
message : String ,
5
5
cause : Throwable ,
6
6
) : Exception(message, cause)
7
+
8
+
9
+ /* *
10
+ * Helper class designed to bridge SKIEE methods and allow them to throw
11
+ * `PowerSyncException`. This is necessary because these exceptions cannot
12
+ * be thrown directly in Swift.
13
+ *
14
+ * The class provides a mechanism to handle exceptions in a way that is
15
+ * compatible with the Swift environment, ensuring proper error propagation
16
+ * and handling.
17
+ */
18
+ @Throws(PowerSyncException ::class )
19
+ public fun throwPowerSyncException (exception : PowerSyncException ): Unit = throw exception
You can’t perform that action at this time.
0 commit comments