fangyuan
2022-11-17 059eebfe1c54750e74e290ed7503e2cbf3f2f740
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.ycl.exception;
 
 
import com.ycl.api.IErrorCode;
 
/**
 * 断言处理类,用于抛出各种API异常
 * Created by macro on 2020/2/27.
 */
public class Asserts {
    public static void fail(String message) {
        throw new ApiException(message);
    }
 
    public static void fail(IErrorCode errorCode) {
        throw new ApiException(errorCode);
    }
}