柯桥增值式服务
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.

28 lines
623B

  1. package com.ningdatech.kqapi.common.exception;
  2. import com.ningdatech.kqapi.common.exception.code.ExceptionCode;
  3. /**
  4. * <p>
  5. * DownloadException
  6. * </p>
  7. *
  8. * @author WendyYang
  9. * @since 16:02 2024/1/8
  10. */
  11. public class DownloadException extends BaseUncheckedException {
  12. public DownloadException(Throwable cause) {
  13. super(cause);
  14. }
  15. public DownloadException(String message, Object... args) {
  16. super(ExceptionCode.BAD_REQUEST.getCode(), message, args);
  17. }
  18. public static DownloadException wrap(String message, Object... args) {
  19. return new DownloadException(message, args);
  20. }
  21. }