Package iqq.im

Examples of iqq.im.QQException


        this.setFileId(pic.getLong("file_id"));
        this.setKey(pic.getString("key"));
        this.setServer(pic.getString("server"));
      }
    } catch (JSONException e) {
      throw new QQException(QQErrorCode.JSON_ERROR, e);
    }

  }
View Full Code Here


      font.put("style", style);
      font.put("name", name);
      json.put(font);
      return json;
    } catch (JSONException e) {
      throw new QQException(QQErrorCode.JSON_ERROR, e);
    }
  }
View Full Code Here

      bold = style.getInt(0) == 1 ? true : false;
      italic = style.getInt(1) == 1 ? true : false;
      underline = style.getInt(2) == 1 ? true : false;
      name = font.getString("name");
    } catch (NumberFormatException e) {
      throw new QQException(QQErrorCode.UNKNOWN_ERROR, e);
    } catch (JSONException e) {
      throw new QQException(QQErrorCode.JSON_ERROR, e);
    }

  }
View Full Code Here

  public void fromJson(String text) throws QQException {
    try {
      JSONArray json = new JSONArray(text);
      id = json.getInt(1);
    } catch (JSONException e) {
      throw new QQException(QQErrorCode.JSON_ERROR, e);
    }
  }
View Full Code Here

TOP

Related Classes of iqq.im.QQException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.