Skip to content

Commit 581cb83

Browse files
authored
Merge pull request #647 from k163377/fix-#617
Added deprecation to MissingKotlinParameterException.
2 parents 50b29d9 + acd8791 commit 581cb83

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/kotlin/com/fasterxml/jackson/module/kotlin/Exceptions.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ import kotlin.reflect.KParameter
1010
* Specialized [JsonMappingException] sub-class used to indicate that a mandatory Kotlin constructor
1111
* parameter was missing or null.
1212
*/
13+
@Deprecated(
14+
"It will be removed in jackson-module-kotlin 2.16. See #617 for details.",
15+
ReplaceWith(
16+
"MismatchedInputException",
17+
"com.fasterxml.jackson.databind.exc.MismatchedInputException"
18+
),
19+
DeprecationLevel.WARNING
20+
)
1321
class MissingKotlinParameterException(val parameter: KParameter,
1422
processor: JsonParser? = null,
1523
msg: String) : MismatchedInputException(processor, msg) {

0 commit comments

Comments
 (0)