Android Open Source - CommonLibs Ret Error Exception






From Project

Back to project page CommonLibs.

License

The source code is released under:

Apache License

If you think the Android project CommonLibs listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/**
 * <p>Title: RetErrorException.java</p>
 * <p>Description: </p>/*from w  w  w  .  j a va  2  s .  co m*/
 * <p>Copyright: Copyright (c) 2013</p>
 * <p>Company: </p>
 * @author caisenchuan
 * @date 2013-9-19
 * @version 1.0
 */
package com.alex.common.exception;

/**
 * ???????
 * @author caisenchuan
 *
 */
public class RetErrorException extends Exception{

    /*--------------------------
     * ?????
     *-------------------------*/

    /*--------------------------
     * ???
     *-------------------------*/
    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 1L;
    /**
     * ??????????
     */
    private static final String ERR_MSG = "Ret of request error";
    
    /*--------------------------
     * ????????
     *-------------------------*/
    private String mErrCode = "";
    
    /*--------------------------
     * public??
     *-------------------------*/
    /**
     * ???????
     */
    public RetErrorException() {
        super(ERR_MSG);
    }
    
    /**
     * ???????
     * @param err_code - ?????
     */
    public RetErrorException(String err_code) {
        super(String.format("%s : %s", ERR_MSG, err_code));
        this.mErrCode = err_code;
    }
    
    /**
     * ??????????????
     * @author caisenchuan
     * @return ?????
     */
    public String getErrCode() {
        return this.mErrCode;
    }
    /*--------------------------
     * protected??packet??
     *-------------------------*/

    /*--------------------------
     * private??
     *-------------------------*/

}




Java Source Code List

com.alex.common.AppConfig.java
com.alex.common.AppControl.java
com.alex.common.Err.java
com.alex.common.OnHttpRequestReturnListener.java
com.alex.common.activities.BaseActivity.java
com.alex.common.activities.ImageLoadActivity.java
com.alex.common.activities.WebViewActivity.java
com.alex.common.apis.HttpApi.java
com.alex.common.exception.RetErrorException.java
com.alex.common.utils.BackgroundHandler.java
com.alex.common.utils.BaiduMapUtils.java
com.alex.common.utils.DateTimeUtils.java
com.alex.common.utils.DeviceUtils.java
com.alex.common.utils.DialogUtils.java
com.alex.common.utils.FileUtils.java
com.alex.common.utils.ImageUtils.java
com.alex.common.utils.KLog.java
com.alex.common.utils.Misc.java
com.alex.common.utils.NetworkUtils.java
com.alex.common.utils.PrefUtils.java
com.alex.common.utils.ShareUtils.java
com.alex.common.utils.StringUtils.java
com.alex.common.utils.ThreadUtils.java
com.alex.common.utils.ToastUtils.java
com.alex.common.views.ZoomImageView.java