change type of exception inside of serialization of message

This commit is contained in:
InsanusMokrassar committed 2019-08-19 16:12:19 +06:00
1 parent f86ae2b592
commit c6638f3102
1 file changed
+1 -1
@@ -31,6 +31,6 @@ internal object TelegramBotAPIMessageDeserializeOnlySerializer : KSerializer<Mes
}
override fun serialize(encoder: Encoder, obj: Message) {
throw IllegalStateException("Currently, Message objects can't be serialized y this serializer")
throw UnsupportedOperationException("Currently, Message objects can't be serialized y this serializer")
}
}