public class OTSException extends ServiceException
构造器和说明 |
---|
OTSException()
构造函数。
|
OTSException(String message)
构造函数。
|
OTSException(String message,
String code,
String requestId) |
OTSException(String message,
Throwable cause)
构造函数。
|
OTSException(String message,
Throwable cause,
String errorCode,
String requestId,
int httpStatus)
构造函数。
|
限定符和类型 | 方法和说明 |
---|---|
int |
getHttpStatus()
返回Http状态码
|
getErrorCode, getHostId, getRequestId, getTraceId, setTraceId, toString
public OTSException()
public OTSException(String message)
message
- 错误消息。public OTSException(String message, Throwable cause)
message
- 错误消息。cause
- 错误原因。public OTSException(String message, Throwable cause, String errorCode, String requestId, int httpStatus)
message
- 错误消息。cause
- 错误原因。errorCode
- 错误代码。requestId
- Request标识。httpStatus
- Http状态码Copyright © 2016. All Rights Reserved.