public class ProjectExceptionRuntime extends RuntimeException implements IProjectException
| 构造器和说明 |
|---|
ProjectExceptionRuntime(IExcept except) |
ProjectExceptionRuntime(IExcept except,
String errMsg)
当有自定义的错误原因时可用此构造函数
|
ProjectExceptionRuntime(IExcept except,
String errMsg,
Throwable cause) |
ProjectExceptionRuntime(IExcept except,
Throwable cause) |
| 限定符和类型 | 方法和说明 |
|---|---|
IExcept |
getExcept()
得到异常对象
|
String |
getMessage()
得到异常信息
|
String |
getMessage(Object errBean)
得到异常信息
|
String |
getMessageAll()
得到异常信息
|
String |
getMessageAll(Object errBean)
得到固定格式的异常信息
|
public ProjectExceptionRuntime(IExcept except)
public ProjectExceptionRuntime(IExcept except, String errMsg)
except - 异常errMsg - 错误信息public String getMessageAll(Object errBean)
getMessageAll 在接口中 IProjectExceptionerrBean - 带参数Bean时要传入的实例public String getMessageAll()
getMessageAll 在接口中 IProjectExceptionpublic String getMessage(Object errBean)
IProjectExceptiongetMessage 在接口中 IProjectExceptionpublic String getMessage()
IProjectExceptiongetMessage 在接口中 IProjectExceptiongetMessage 在类中 Throwablepublic IExcept getExcept()
getExcept 在接口中 IProjectExceptionCopyright © 2022. All rights reserved.