柯桥增值式服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 line
740B

  1. package com.ningdatech.kqapi.common.exception;
  2. /**
  3. * 非业务异常
  4. * 用于在处理非业务逻辑时,进行抛出的异常。
  5. *
  6. * @author WendyYang
  7. * @version 1.0
  8. * @see Exception
  9. */
  10. public class CommonException extends BaseCheckedException {
  11. public CommonException(int code, String message) {
  12. super(code, message);
  13. }
  14. public CommonException(int code, String format, Object... args) {
  15. super(code, format, args);
  16. }
  17. public CommonException wrap(int code, String format, Object... args) {
  18. return new CommonException(code, format, args);
  19. }
  20. @Override
  21. public String toString() {
  22. return "BizException [message=" + getMessage() + ", code=" + getCode() + "]";
  23. }
  24. }