AssertUtils.java 394 B

12345678910111213141516171819
  1. package com.jkcredit.invoice.hub.util;
  2. import com.jkcredit.invoice.hub.spi.lang.exception.ServiceException;
  3. /**
  4. * @description:
  5. * @author: xusonglin
  6. * @create: 2020/1/12 19:59
  7. * @version: V1.0
  8. **/
  9. public class AssertUtils {
  10. public static void assertNotNull(Object obj, String message) {
  11. if (obj == null) {
  12. throw new ServiceException(message);
  13. }
  14. }
  15. }