Ejemplo n.º 1
0
    public Map<String, Construct> evaluate(BindableEvent e) throws EventException {
      Map<String, Construct> retn = new HashMap<String, Construct>();

      if (e instanceof ConnectionException) {
        ConnectionException msg = (ConnectionException) e;

        retn.put("id", new CString(msg.getBot().getID(), Target.UNKNOWN));
        retn.put("message", new CString(msg.getMessage(), Target.UNKNOWN));
        retn.put("exceptionclass", new CString(msg.className(), Target.UNKNOWN));
      }

      return retn;
    }