ThirdPartyServiceException.java 472 B

123456789101112131415161718192021
  1. package cn.seecoder.ojserver.exception;
  2. import lombok.Data;
  3. import org.hibernate.service.spi.ServiceException;
  4. /**
  5. * @author mars
  6. */
  7. @Data
  8. public class ThirdPartyServiceException extends ServiceException {
  9. private String code;
  10. public ThirdPartyServiceException(String message, Throwable root) {
  11. super(message, root);
  12. }
  13. public ThirdPartyServiceException(String message, String code) {
  14. super(message);
  15. this.code = code;
  16. }
  17. }