Package org.apache.wink.json4j.compat

Examples of org.apache.wink.json4j.compat.JSONException.initCause()


    public short getShort(int index) throws JSONException {
        try {
            return delegate.getShort(index);
        } catch (Exception ex) {
            JSONException jex = new JSONException(ex.getMessage());
            jex.initCause(ex);
            throw jex;
        }
    }

    public String getString(int index) throws JSONException {
View Full Code Here


    public String getString(int index) throws JSONException {
        try {
            return delegate.getString(index);
        } catch (Exception ex) {
            JSONException jex = new JSONException(ex.getMessage());
            jex.initCause(ex);
            throw jex;
        }
    }

    public JSONArray getJSONArray(int index) throws JSONException {
View Full Code Here

                return null;
            }
            return new ApacheJSONArrayDelegate(obj);
        } catch (Exception ex) {
            JSONException jex = new JSONException(ex.getMessage());
            jex.initCause(ex);
            throw jex;
        }
    }

    public JSONObject getJSONObject(int index) throws JSONException {
View Full Code Here

                return null;
            }
            return new ApacheJSONObjectDelegate(obj);
        } catch (Exception ex) {
            JSONException jex = new JSONException(ex.getMessage());
            jex.initCause(ex);
            throw jex;
        }
    }

View Full Code Here

        try {
            delegate.put(value);
            return this;
        } catch (Exception ex) {
            JSONException jex = new JSONException(ex.getMessage());
            jex.initCause(ex);
            throw jex;
        }
    }

    public JSONArray put(int index, boolean value) throws JSONException {
View Full Code Here

        try {
            delegate.put(index,value);
            return this;
        } catch (Exception ex) {
            JSONException jex = new JSONException(ex.getMessage());
            jex.initCause(ex);
            throw jex;
        }
    }

    public JSONArray put(int index, Collection value) throws JSONException {
View Full Code Here

        try {
            delegate.put(index,value);
            return this;
        } catch (Exception ex) {
            JSONException jex = new JSONException(ex.getMessage());
            jex.initCause(ex);
            throw jex;
        }
    }

    public JSONArray put(int index, double value) throws JSONException {
View Full Code Here

        try {
            delegate.put(index,value);
            return this;
        } catch (Exception ex) {
            JSONException jex = new JSONException(ex.getMessage());
            jex.initCause(ex);
            throw jex;
        }
    }

    public JSONArray put(int index, int value) throws JSONException {
View Full Code Here

        try {
            delegate.put(index,value);
            return this;
        } catch (Exception ex) {
            JSONException jex = new JSONException(ex.getMessage());
            jex.initCause(ex);
            throw jex;
        }
    }

    public JSONArray put(int index, long value) throws JSONException {
View Full Code Here

        try {
            delegate.put(index,value);
            return this;
        } catch (Exception ex) {
            JSONException jex = new JSONException(ex.getMessage());
            jex.initCause(ex);
            throw jex;
        }
    }

    public JSONArray put(int index, short value) throws JSONException {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.