Skip to content

Commit acd8791

Browse files
committed
Added deprecation to MissingKotlinParameterException.
1 parent 3a09a78 commit acd8791

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)