public class BizException extends BaseUncheckedException
BASE_VALID_PARAM| 构造器和说明 |
|---|
BizException(int code,
String message) |
BizException(int code,
String message,
Object... args) |
BizException(int code,
String message,
Throwable cause) |
BizException(int code,
Throwable cause) |
BizException(String message) |
BizException(String message,
Throwable cause) |
BizException(Throwable cause) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
toString() |
static BizException |
validFail(String message,
Object... args) |
static BizException |
wrap(BaseExceptionCode ex) |
static BizException |
wrap(BaseExceptionCode ex,
Throwable cause) |
static BizException |
wrap(int code,
String message,
Object... args)
实例化异常
|
static BizException |
wrap(String message,
Object... args) |
getCode, getMessagepublic BizException(Throwable cause)
public BizException(int code,
Throwable cause)
public BizException(String message)
public BizException(int code,
String message)
public static BizException wrap(int code, String message, Object... args)
code - 自定义异常编码message - 自定义异常消息args - 已定义异常参数public static BizException wrap(String message, Object... args)
public static BizException validFail(String message, Object... args)
public static BizException wrap(BaseExceptionCode ex)
public static BizException wrap(BaseExceptionCode ex, Throwable cause)
Copyright © 2023. All rights reserved.