diff options
author | Vitaly Takmazov | 2016-11-28 14:37:02 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-11-28 14:37:02 +0300 |
commit | 5b2bd7f928bbf9d3233ff029ed5c09ac46daf0de (patch) | |
tree | cfad7f15e35c51d11a488df5a9b2be5300b9af54 /juick-xmpp-bot/src | |
parent | c252087c54e91e63f89775eba4c65cf87ae21e5d (diff) |
all components using jackson now, org.json serializer moved to compatibility tests package
Diffstat (limited to 'juick-xmpp-bot/src')
-rw-r--r-- | juick-xmpp-bot/src/main/java/com/juick/components/XMPPBot.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/juick-xmpp-bot/src/main/java/com/juick/components/XMPPBot.java b/juick-xmpp-bot/src/main/java/com/juick/components/XMPPBot.java index 43ed3dde..15ba073e 100644 --- a/juick-xmpp-bot/src/main/java/com/juick/components/XMPPBot.java +++ b/juick-xmpp-bot/src/main/java/com/juick/components/XMPPBot.java @@ -1,5 +1,6 @@ package com.juick.components; +import com.fasterxml.jackson.core.JsonProcessingException; import com.juick.User; import com.juick.server.UserQueries; import com.juick.server.helpers.UserInfo; @@ -78,16 +79,14 @@ public class XMPPBot implements AutoCloseable { replyMessage.setBody(reply.getDescription()); replyMessage.setFrom(juickJid); component.send(replyMessage); - } catch (InvocationTargetException | IllegalAccessException | NoSuchMethodException ex) { + } catch (InvocationTargetException | IllegalAccessException | NoSuchMethodException | JsonProcessingException ex) { logger.warn("unhandled error", ex); } } }); component.connect(); - } catch (XmppException e) { + } catch (XmppException | IOException e) { logger.error("bot connection error", e); - } catch (IOException e) { - logger.error("bot initialization error", e); } } |