File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
src/main/kotlin/com/fasterxml/jackson/module/kotlin Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,19 @@ package com.fasterxml.jackson.module.kotlin
3
3
import com.fasterxml.jackson.core.JsonParser
4
4
import com.fasterxml.jackson.databind.JsonMappingException
5
5
import com.fasterxml.jackson.databind.exc.MismatchedInputException
6
+ import java.io.Closeable
6
7
import kotlin.reflect.KParameter
7
8
8
9
/* *
9
10
* Specialized [JsonMappingException] sub-class used to indicate that a mandatory Kotlin constructor
10
11
* parameter was missing or null.
11
12
*/
12
13
class MissingKotlinParameterException (val parameter : KParameter ,
13
- val processor : JsonParser ? = null ,
14
- val msg : String ) : MismatchedInputException(processor, msg)
14
+ processor : JsonParser ? = null ,
15
+ msg : String ) : MismatchedInputException(processor, msg) {
16
+ constructor (
17
+ parameter: KParameter ,
18
+ processor: Closeable ? = null ,
19
+ msg: String
20
+ ) : this (parameter, processor as JsonParser , msg)
21
+ }
You can’t perform that action at this time.
0 commit comments