1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-10 18:33:47 +00:00

change type of exception inside of serialization of message

This commit is contained in:
InsanusMokrassar 2019-08-19 16:12:19 +06:00
parent f86ae2b592
commit c6638f3102

View File

@ -31,6 +31,6 @@ internal object TelegramBotAPIMessageDeserializeOnlySerializer : KSerializer<Mes
} }
override fun serialize(encoder: Encoder, obj: Message) { 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")
} }
} }