public class MyException extends RuntimeException
| 构造器和说明 |
|---|
MyException()
Creates a new instance of ExcelReadException.
|
MyException(String message)
Creates a new instance of ExcelReadException.
|
MyException(String message,
int code,
Object data)
Creates a new instance of MyException.
|
MyException(String message,
Object data)
Creates a new instance of MyException.
|
MyException(String message,
Throwable cause)
Creates a new instance of ExcelReadException.
|
MyException(String message,
Throwable cause,
Object data,
int code,
String nbxx)
Creates a new instance of MyException.
|
MyException(String message,
Throwable cause,
String nbxx)
Creates a new instance of ExcelReadException.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getCode() |
Object |
getData() |
String |
getMessage() |
Result |
getResult() |
void |
setCode(int code) |
void |
setData(Object data) |
public MyException()
public MyException(String message)
message - 异常消息public MyException(String message, Throwable cause)
message - 异常消息cause - 原异常public MyException(String message, Throwable cause, String nbxx)
message - 异常消息cause - 原异常nbxx - 内部信息public MyException(String message, Object data)
message - 异常消息data - 数据public MyException(String message, int code, Object data)
message - 异常消息code - 异常代码data - 数据public Object getData()
public void setData(Object data)
data - the data to setpublic int getCode()
public void setCode(int code)
public Result getResult()
public String getMessage()
getMessage 在类中 ThrowableCopyright © 2024. All rights reserved.