package com.dataeasy.server.common.exception; /** * 业务异常 * * @author tyuio */ public class BusinessException extends RuntimeException { public BusinessException(String message) { super(message); } /** * 构造业务异常信息 * @param message * @return */ public static BusinessException fail(String message) { return new BusinessException(message); } /** * 抛出业务异常 * @param message */ public static void throwFail(String message) { throw fail(message); } }