public class BizException extends RuntimeException
| 构造器和说明 |
|---|
BizException(IBizCode response,
String... objs) |
| 限定符和类型 | 方法和说明 |
|---|---|
static BizException |
get(IBizCode resultCode,
String... objs)
构造异常类
|
static BizException |
get(Integer code,
String message)
构造异常类
|
static BizException |
get(String message)
构造异常类
|
Integer |
getCode() |
String |
getMessage() |
IBizCode |
getResponse() |
static void |
throwException(IBizCode resultCode,
String... objs) |
static void |
throwException(Integer code,
String message) |
static void |
throwException(String message) |
String |
toString() |
public static BizException get(IBizCode resultCode, String... objs)
resultCode - resultCodeobjs - objspublic static BizException get(String message)
message - messagepublic static BizException get(Integer code, String message)
code - codemessage - messagespublic static void throwException(Integer code, String message)
code - codemessage - messagepublic static void throwException(String message)
message - messagepublic static void throwException(IBizCode resultCode, String... objs)
resultCode - resultCodeobjs - objspublic IBizCode getResponse()
public String getMessage()
getMessage 在类中 Throwablepublic Integer getCode()
Copyright © 2021. All rights reserved.