File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/main/kotlin/com/fasterxml/jackson/module/kotlin Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
package com.fasterxml.jackson.module.kotlin
2
2
3
+ import com.fasterxml.jackson.databind.JsonMappingException
3
4
import com.fasterxml.jackson.databind.MapperFeature
4
5
import com.fasterxml.jackson.databind.module.SimpleModule
5
6
import com.fasterxml.jackson.module.kotlin.KotlinFeature.NullIsSameAsDefault
@@ -57,7 +58,10 @@ class KotlinModule @Deprecated(
57
58
init {
58
59
if (! KotlinVersion .CURRENT .isAtLeast(1 , 5 )) {
59
60
// Kotlin 1.4 was deprecated when this process was introduced(jackson-module-kotlin 2.15).
60
- throw IllegalStateException (" jackson-module-kotlin requires Kotlin 1.5 or higher." )
61
+ throw JsonMappingException (
62
+ null ,
63
+ " KotlinModule requires Kotlin version >= 1.5 - Found ${KotlinVersion .CURRENT } "
64
+ )
61
65
}
62
66
}
63
67
You can’t perform that action at this time.
0 commit comments