REQ-3502: 添加辅助函数
This commit is contained in:
parent
c69821dcfb
commit
676b146978
@ -21,8 +21,8 @@ import java.util.Objects;
|
|||||||
@Slf4j
|
@Slf4j
|
||||||
public class BizAssertions {
|
public class BizAssertions {
|
||||||
|
|
||||||
public static void fail(String message, Object... args) {
|
public static ServiceException fail(String message, Object... args) {
|
||||||
throw new ServiceException(MessageFormatter.arrayFormat(message, args).getMessage());
|
return new ServiceException(MessageFormatter.arrayFormat(message, args).getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user