Back to project page CommonLibs.
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.
/** * <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?? *-------------------------*/ }