File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
core/commonMain/src/kotlinx/serialization Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 5
5
package kotlinx.serialization
6
6
7
7
import kotlinx.serialization.encoding.*
8
+ import kotlinx.serialization.descriptors.*
8
9
9
10
/* *
10
11
* A generic exception indicating the problem in serialization or deserialization process.
@@ -65,6 +66,12 @@ public open class SerializationException : IllegalArgumentException {
65
66
* [MissingFieldException] is thrown on missing field from all [auto-generated][Serializable] serializers and it
66
67
* is recommended to throw this exception from user-defined serializers.
67
68
*
69
+ * [MissingFieldException] is constructed from the following properties:
70
+ * - [missingFields] -- fields that were required for the deserialization but have not been found.
71
+ * They are always non-empty and their names match the corresponding names in [SerialDescriptor.elementNames]
72
+ * - Optional `serialName` -- serial name of the enclosing class that failed to get deserialized.
73
+ * Matches the corresponding [SerialDescriptor.serialName].
74
+ *
68
75
* @see SerializationException
69
76
* @see KSerializer
70
77
*/
You can’t perform that action at this time.
0 commit comments