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 55package kotlinx.serialization
66
77import kotlinx.serialization.encoding.*
8+ import kotlinx.serialization.descriptors.*
89
910/* *
1011 * A generic exception indicating the problem in serialization or deserialization process.
@@ -65,6 +66,12 @@ public open class SerializationException : IllegalArgumentException {
6566 * [MissingFieldException] is thrown on missing field from all [auto-generated][Serializable] serializers and it
6667 * is recommended to throw this exception from user-defined serializers.
6768 *
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+ *
6875 * @see SerializationException
6976 * @see KSerializer
7077 */
You can’t perform that action at this time.
0 commit comments