Skip to content

Commit 95ded8f

Browse files
committed
Make MKPE descend from MismatchedInputException
1 parent 2a6829f commit 95ded8f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
package com.fasterxml.jackson.module.kotlin
22

3+
import com.fasterxml.jackson.core.JsonParser
34
import com.fasterxml.jackson.databind.JsonMappingException
4-
import java.io.Closeable
5+
import com.fasterxml.jackson.databind.exc.MismatchedInputException
56
import kotlin.reflect.KParameter
67

78
/**
8-
* Specialized [JsonMappingException] sub-class used to indicate that a mandatory Kotlin constructor parameter was missing or null.
9+
* Specialized [JsonMappingException] sub-class used to indicate that a mandatory Kotlin constructor
10+
* parameter was missing or null.
911
*/
10-
class MissingKotlinParameterException(val parameter: KParameter, val processor: Closeable? = null, val msg: String) : JsonMappingException(processor, msg)
12+
class MissingKotlinParameterException(val parameter: KParameter,
13+
val processor: JsonParser? = null,
14+
val msg: String) : MismatchedInputException(processor, msg)

0 commit comments

Comments
 (0)