public class OperationException extends Exception
构造器和说明 |
---|
OperationException()
构造函数
|
OperationException(int code) |
OperationException(int code,
String message)
构造函数
|
OperationException(int code,
String message,
Throwable cause)
构造函数
|
OperationException(String message)
构造函数
|
OperationException(String message,
Throwable cause)
构造函数
|
限定符和类型 | 方法和说明 |
---|---|
int |
errorCode()
Return the error code for exception
|
int |
getCode()
Return the error code for exception
|
String |
toString() |
public OperationException()
public OperationException(int code)
public OperationException(String message)
message
- 异常信息public OperationException(int code, String message)
code
- 错误码message
- 异常信息public OperationException(String message, Throwable cause)
message
- 异常信息cause
- 原因(保存以供以后通过Throwable.getCause()方法检索)。(允许值为null ,表示原因不存在或未知。)Copyright © 2022 buession.com Inc.. All rights reserved.