Skip to content

Instantly share code, notes, and snippets.

@syhily
Created September 11, 2015 15:30
Show Gist options
  • Save syhily/b1932cb2f9b9b7ba2c7e to your computer and use it in GitHub Desktop.
Save syhily/b1932cb2f9b9b7ba2c7e to your computer and use it in GitHub Desktop.
import CoreBizException;
/**
* Title: BankRouterComponentException <br>
* Description: XX业务层异常基础定义类<br>
*
* @author yufan.sheng
* @version 1.0.0
* @since 15/9/6 上午11:36
*/
@SuppressWarnings("ThrowableInstanceNeverThrown")
public class BankRouterComponentException extends CoreBizException {
/* 621***路由支付业务层异常码 */
/* 622***路由鉴权业务层异常码 */
/** 鉴权交易流水号不为空 */
public static BankRouterComponentException AUTH_TRADE_SERIAL_NO_NOT_NULL = new BankRouterComponentException("622001");
/** 鉴权短验证确认码不为空 */
public static BankRouterComponentException AUTH_VERIFY_CODE_NOT_NULL = new BankRouterComponentException("622002");
protected BankRouterComponentException(String defineCode) {
super(defineCode);
}
public BankRouterComponentException newInstance(String message, Object... args) {
BankRouterComponentException e = new BankRouterComponentException(this.defineCode);
e.setMessage(message, args);
return e;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment